#2E166B#2E166B
#2E166B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.136 H 287.9°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).
Color values
| HEX | #2E166B |
|---|---|
| RGB | rgb(46, 22, 107) |
| HSL | hsl(257, 66%, 25%) |
| HSV | hsv(257, 79%, 42%) |
| CMYK | cmyk(57%, 79.4%, 0%, 58%) |
| CIE-LAB | lab(16.58, 34.44, -45.06) |
| CIE-LCH | lch(16.58, 56.71, 307.39°) |
| OKLab | oklab(29.63% 0.0419 -0.1296) |
| OKLCH | oklch(29.63% 0.136 287.9) |
| XYZ | xyz(4.0667, 2.2160, 14.1205) |
| Luminance | 0.0222 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.48
Dark Indigo
#1F0954
ΔE00 4.56
Indigo (survey)
#380282
ΔE00 5.03
Darkblue (survey)
#030764
ΔE00 5.21
Dark Royal Blue
#02066F
ΔE00 5.26
Deep Blue
#040273
ΔE00 5.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E166B #536B16
analogous
#16296B #2E166B #58166B
triadic
#2E166B #6B2E16 #166B2E
tetradic
#2E166B #6B1629 #536B16 #166B58
square
#2E166B #6B1629 #536B16 #166B58
split-complementary
#2E166B #6B5816 #296B16
monochromatic
#0B0519 #180C38 #2E166B #44209E #5A2BD1
Accessibility & contrast
On white
14.55
#2E166B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#2E166B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E166B
14.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E166B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E166B | 1.00 | 14.55 | 1.44 | 14.55 |
| #FFFFFF | 14.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#152E3F
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2e166b; /* rgb */ color: rgb(46, 22, 107); /* oklch */ color: oklch(29.6% 0.136 287.9);
Tailwind
colors: {
custom: {
50: '#6f5696',
500: '#2e166b',
950: '#000000',
},
}SCSS
$custom: #2e166b; $custom-light: #6f5696; $custom-dark: #000000;
JSON
{
"hex": "#2e166b",
"rgb": {
"r": 46,
"g": 22,
"b": 107
},
"hsl": {
"h": 256.941,
"s": 65.891,
"l": 25.294
},
"oklch": {
"l": 0.2963,
"c": 0.13621,
"h": 287.9
},
"luminance": 0.02216
}Semantic roles & 50–950 ramp
primary
#2E166B
secondary
#85A13B
accent
#E93FB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E