#2E189B#2E189B
#2E189B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.192 H 277.6°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).
Color values
| HEX | #2E189B |
|---|---|
| RGB | rgb(46, 24, 155) |
| HSL | hsl(250, 73%, 35%) |
| HSV | hsv(250, 85%, 61%) |
| CMYK | cmyk(70.3%, 84.5%, 0%, 39.2%) |
| CIE-LAB | lab(22.30, 48.10, -65.97) |
| CIE-LCH | lch(22.30, 81.64, 306.09°) |
| OKLab | oklab(35.19% 0.0253 -0.1906) |
| OKLCH | oklch(35.19% 0.192 277.6) |
| XYZ | xyz(7.3678, 3.6000, 31.3106) |
| Luminance | 0.0360 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.90
Cobalt Blue
#030AA7
ΔE00 3.14
Indigo Blue
#3A18B1
ΔE00 3.34
Royal Blue (survey)
#0504AA
ΔE00 3.50
Ultramarine
#2000B1
ΔE00 3.62
Indigo (survey)
#380282
ΔE00 4.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E189B #859B18
analogous
#18449B #2E189B #6F189B
triadic
#2E189B #9B2E18 #189B2E
tetradic
#2E189B #9B1844 #859B18 #189B6F
square
#2E189B #9B1844 #859B18 #189B6F
split-complementary
#2E189B #9B6F18 #449B18
monochromatic
#0F0831 #1E1066 #2E189B #3E20D0 #644AE3
Accessibility & contrast
On white
12.21
#2E189B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#2E189B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E189B
12.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E189B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E189B | 1.00 | 12.21 | 1.72 | 12.21 |
| #FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A9E
Deuteranopia (green-blind)
#003099
Tritanopia (blue-blind)
#00425C
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2e189b; /* rgb */ color: rgb(46, 24, 155); /* oklch */ color: oklch(35.2% 0.192 277.6);
Tailwind
colors: {
custom: {
50: '#795bba',
500: '#2e189b',
950: '#000000',
},
}SCSS
$custom: #2e189b; $custom-light: #795bba; $custom-dark: #000000;
JSON
{
"hex": "#2e189b",
"rgb": {
"r": 46,
"g": 24,
"b": 155
},
"hsl": {
"h": 250.076,
"s": 73.184,
"l": 35.098
},
"oklch": {
"l": 0.35192,
"c": 0.19225,
"h": 277.6
},
"luminance": 0.03601
}Semantic roles & 50–950 ramp
primary
#2E189B
secondary
#B0C54A
accent
#F038D1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981