#2E156F#2E156F
#2E156F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.142 H 286.9°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).
Color values
| HEX | #2E156F |
|---|---|
| RGB | rgb(46, 21, 111) |
| HSL | hsl(257, 68%, 26%) |
| HSV | hsv(257, 81%, 44%) |
| CMYK | cmyk(58.6%, 81.1%, 0%, 56.5%) |
| CIE-LAB | lab(16.82, 36.19, -47.28) |
| CIE-LCH | lch(16.82, 59.54, 307.44°) |
| OKLab | oklab(29.92% 0.0415 -0.1361) |
| OKLCH | oklch(29.92% 0.142 286.9) |
| XYZ | xyz(4.2633, 2.2646, 15.2483) |
| Luminance | 0.0226 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.35
Indigo (survey)
#380282
ΔE00 4.34
Dark Royal Blue
#02066F
ΔE00 4.89
Dark Indigo
#1F0954
ΔE00 5.02
Darkblue (survey)
#030764
ΔE00 5.11
Deep Blue
#040273
ΔE00 5.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E156F #566F15
analogous
#15296F #2E156F #5B156F
triadic
#2E156F #6F2E15 #156F2E
tetradic
#2E156F #6F1529 #566F15 #156F5B
square
#2E156F #6F1529 #566F15 #156F5B
split-complementary
#2E156F #6F5B15 #296F15
monochromatic
#0B051A #190B3C #2E156F #431FA2 #5928D6
Accessibility & contrast
On white
14.45
#2E156F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#2E156F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E156F
14.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E156F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E156F | 1.00 | 14.45 | 1.45 | 14.45 |
| #FFFFFF | 14.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#102F41
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2e156f; /* rgb */ color: rgb(46, 21, 111); /* oklch */ color: oklch(29.9% 0.142 286.9);
Tailwind
colors: {
custom: {
50: '#6f5699',
500: '#2e156f',
950: '#000000',
},
}SCSS
$custom: #2e156f; $custom-light: #6f5699; $custom-dark: #000000;
JSON
{
"hex": "#2e156f",
"rgb": {
"r": 46,
"g": 21,
"b": 111
},
"hsl": {
"h": 256.667,
"s": 68.182,
"l": 25.882
},
"oklch": {
"l": 0.29922,
"c": 0.14226,
"h": 286.9
},
"luminance": 0.02265
}Semantic roles & 50–950 ramp
primary
#2E156F
secondary
#88A53A
accent
#EB3DBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E