#2E176F#2E176F
#2E176F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.140 H 286.5°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).
Color values
| HEX | #2E176F |
|---|---|
| RGB | rgb(46, 23, 111) |
| HSL | hsl(256, 66%, 26%) |
| HSV | hsv(256, 79%, 44%) |
| CMYK | cmyk(58.6%, 79.3%, 0%, 56.5%) |
| CIE-LAB | lab(17.18, 35.15, -46.68) |
| CIE-LCH | lch(17.18, 58.43, 306.98°) |
| OKLab | oklab(30.18% 0.0399 -0.1343) |
| OKLCH | oklch(30.18% 0.14 286.5) |
| XYZ | xyz(4.3015, 2.3411, 15.2611) |
| Luminance | 0.0234 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.16
Indigo (survey)
#380282
ΔE00 4.67
Dark Royal Blue
#02066F
ΔE00 5.13
Dark Indigo
#1F0954
ΔE00 5.15
Darkblue (survey)
#030764
ΔE00 5.30
Deep Blue
#040273
ΔE00 5.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E176F #586F17
analogous
#172C6F #2E176F #5A176F
triadic
#2E176F #6F2E17 #176F2E
tetradic
#2E176F #6F172C #586F17 #176F5A
square
#2E176F #6F172C #586F17 #176F5A
split-complementary
#2E176F #6F5A17 #2C6F17
monochromatic
#0B0519 #190C3C #2E176F #4322A2 #582DD3
Accessibility & contrast
On white
14.30
#2E176F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#2E176F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E176F
14.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E176F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E176F | 1.00 | 14.30 | 1.47 | 14.30 |
| #FFFFFF | 14.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00286D
Tritanopia (blue-blind)
#103042
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2e176f; /* rgb */ color: rgb(46, 23, 111); /* oklch */ color: oklch(30.2% 0.140 286.5);
Tailwind
colors: {
custom: {
50: '#6f5799',
500: '#2e176f',
950: '#000000',
},
}SCSS
$custom: #2e176f; $custom-light: #6f5799; $custom-dark: #000000;
JSON
{
"hex": "#2e176f",
"rgb": {
"r": 46,
"g": 23,
"b": 111
},
"hsl": {
"h": 255.682,
"s": 65.672,
"l": 26.275
},
"oklch": {
"l": 0.30178,
"c": 0.14015,
"h": 286.5
},
"luminance": 0.02341
}Semantic roles & 50–950 ramp
primary
#2E176F
secondary
#8AA53D
accent
#E93FBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E