#6D28D9

Royal Blue

#6D28D9Royal Blue

Luminance

0.098

Category

Purple

Type

Dark

Best On

#FFFFFF

Color Codes

All color formats for your project

HEX

HEX
#6D28D9
No #
6D28D9

RGB

RGB
rgb(109, 40, 217)
Values
R:109 G:40 B:217

HSL

HSL
hsl(263, 70%, 50%)
Values
H:263° S:70% L:50%

HSV / HSB

HSV
hsv(263, 82%, 85%)
Values
H:263° S:82% V:85%

CMYK

CMYK
cmyk(50%, 82%, 0%, 15%)
Values
C:50 M:82 Y:0 K:15

LAB

LAB
lab(37, 65, -78)
Values
L:37 a:65 b:-78

OKLCH

OKLCH
oklch(49.1% 0.241 292.6)
Values
L:49.1% C:0.241 H:292.6°

Code Formats

CSS
color: #6D28D9;
Swift
UIColor(red: 0.427, green: 0.157, blue: 0.851, alpha: 1.0)
Kotlin
Color(0xFF6D28D9)
Flutter
Color(0xFF6D28D9)
Android
#FF6D28D9

Contrast Analysis

WCAG compliance with grayscale colors

On White

7.10:1

AAA

On Black

2.96:1

Fail

Grayscale Contrast

Aa

0%

3.0

Fail
Aa

10%

2.4

Fail
Aa

20%

1.8

Fail
Aa

30%

1.2

Fail
Aa

40%

1.2

Fail
Aa

50%

1.8

Fail
Aa

60%

2.5

Fail
Aa

70%

3.4

AA-large
Aa

80%

4.4

AA-large
Aa

90%

5.6

AA
Aa

100%

7.1

AAA

Best Grayscale Contrast

#FFFFFF with ratio 7.10:1

Aa

Color Harmonies

Harmonious color combinations

complementary

Two colors opposite on the color wheel (180°)

split-complementary

Base color + two colors adjacent to its complement

triadic

Three colors evenly spaced (120° apart)

tetradic

Four colors evenly spaced (90° apart)

analogous

Three colors adjacent on the color wheel (30° apart)

Color Variations

Tints, shades, tones, and full scale

Color Scale (50-900)

50

100

200

300

400

500

600

700

800

900

Tints (Lighter)

Shades (Darker)

Tones (Desaturated)

Gradients (OKLCH)

Primary

90°
CSS
linear-gradient(90deg, #A67DE8 0%, #401782 100%)
OKLCH
linear-gradient(90deg, oklch(67.4% 0.157 299.9) 0%, oklch(34.1% 0.162 293.0) 100%)
Stops
0%
100%

Vibrant

135°
CSS
linear-gradient(135deg, #8542F0 0%, #4F05C7 100%)
OKLCH
linear-gradient(135deg, oklch(56.2% 0.242 294.9) 0%, oklch(42.1% 0.242 285.7) 100%)
Stops
0%
100%

Complementary

90°
CSS
linear-gradient(90deg, #6D28D9 0%, #94D926 100%)
OKLCH
linear-gradient(90deg, oklch(49.1% 0.241 292.6) 0%, oklch(80.9% 0.206 129.7) 100%)
Stops
0%
100%

Analogous

90°
CSS
linear-gradient(90deg, #263BD9 0%, #6D28D9 50%, #C426D9 100%)
OKLCH
linear-gradient(90deg, oklch(46.1% 0.237 268.0) 0%, oklch(49.1% 0.241 292.6) 50%, oklch(60.1% 0.263 322.5) 100%)
Stops
0%
50%
100%

Sunset

90°
CSS
linear-gradient(90deg, #F6CE55 0%, #EE6C2B 50%, #E6193C 100%)
OKLCH
linear-gradient(90deg, oklch(86.4% 0.144 90.6) 0%, oklch(68.0% 0.177 43.8) 50%, oklch(59.1% 0.228 21.2) 100%)
Stops
0%
50%
100%

Ocean

135°
CSS
linear-gradient(135deg, #19A1E6 0%, #22C3B6 50%, #47D1A3 100%)
OKLCH
linear-gradient(135deg, oklch(67.5% 0.146 238.9) 0%, oklch(73.8% 0.124 186.2) 50%, oklch(77.5% 0.136 166.9) 100%)
Stops
0%
50%
100%

Dark Mode

180°
CSS
linear-gradient(180deg, #6B26D9 0%, #1C122B 100%)
OKLCH
linear-gradient(180deg, oklch(48.7% 0.243 292.0) 0%, oklch(20.9% 0.049 300.7) 100%)
Stops
0%
100%

Radial Glow

Radial
CSS
radial-gradient(circle, #9767E4 0%, #4B1B98 100%)
OKLCH
radial-gradient(circle, oklch(62.2% 0.183 298.7) 0%, oklch(37.9% 0.183 292.7) 100%)
Stops
0%
100%

💡 About OKLCH Gradients

OKLCH (Oklch Color Space) provides perceptually uniform gradients with better color transitions than traditional RGB/HSL gradients. The format is oklch(L% C H) where L = Lightness (0-100%), C = Chroma (0-0.4), H = Hue (0-360°).

Generate Full Palette

Create a complete brand palette from this color with primary, secondary, accent, and neutral scales.

View Palette