#2E186E#2E186E
#2E186E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.138 H 286.6°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).
Color values
| HEX | #2E186E |
|---|---|
| RGB | rgb(46, 24, 110) |
| HSL | hsl(255, 64%, 26%) |
| HSV | hsv(255, 78%, 43%) |
| CMYK | cmyk(58.2%, 78.2%, 0%, 56.9%) |
| CIE-LAB | lab(17.27, 34.29, -45.88) |
| CIE-LCH | lch(17.27, 57.28, 306.77°) |
| OKLab | oklab(30.21% 0.0394 -0.132) |
| OKLCH | oklch(30.21% 0.138 286.6) |
| XYZ | xyz(4.2670, 2.3597, 14.9794) |
| Luminance | 0.0236 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.14
Indigo (survey)
#380282
ΔE00 4.97
Dark Indigo
#1F0954
ΔE00 5.11
Dark Royal Blue
#02066F
ΔE00 5.32
Darkblue (survey)
#030764
ΔE00 5.41
Deep Blue
#040273
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E186E #586E18
analogous
#182D6E #2E186E #59186E
triadic
#2E186E #6E2E18 #186E2E
tetradic
#2E186E #6E182D #586E18 #186E59
square
#2E186E #6E182D #586E18 #186E59
split-complementary
#2E186E #6E5918 #2D6E18
monochromatic
#0B0519 #190D3C #2E186E #4323A0 #582FD2
Accessibility & contrast
On white
14.27
#2E186E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#2E186E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E186E
14.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E186E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E186E | 1.00 | 14.27 | 1.47 | 14.27 |
| #FFFFFF | 14.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#113042
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2e186e; /* rgb */ color: rgb(46, 24, 110); /* oklch */ color: oklch(30.2% 0.138 286.6);
Tailwind
colors: {
custom: {
50: '#6f5798',
500: '#2e186e',
950: '#000000',
},
}SCSS
$custom: #2e186e; $custom-light: #6f5798; $custom-dark: #000000;
JSON
{
"hex": "#2e186e",
"rgb": {
"r": 46,
"g": 24,
"b": 110
},
"hsl": {
"h": 255.349,
"s": 64.179,
"l": 26.275
},
"oklch": {
"l": 0.30208,
"c": 0.13778,
"h": 286.6
},
"luminance": 0.0236
}Semantic roles & 50–950 ramp
primary
#2E186E
secondary
#8AA43E
accent
#E741BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E