#2E174F#2E174F
#2E174F is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.1% C 0.098 H 298.5°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).
Color values
| HEX | #2E174F |
|---|---|
| RGB | rgb(46, 23, 79) |
| HSL | hsl(265, 55%, 20%) |
| HSV | hsv(265, 71%, 31%) |
| CMYK | cmyk(41.8%, 70.9%, 0%, 69%) |
| CIE-LAB | lab(14.16, 25.21, -30.29) |
| CIE-LCH | lch(14.16, 39.41, 309.78°) |
| OKLab | oklab(27.1% 0.0468 -0.0863) |
| OKLCH | oklch(27.1% 0.098 298.5) |
| XYZ | xyz(2.8440, 1.7581, 7.5851) |
| Luminance | 0.0176 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 5.00
Dark Purple
#35063E
ΔE00 6.19
Midnight Purple
#280137
ΔE00 6.35
Dark Violet
#34013F
ΔE00 6.41
Deep Purple
#36013F
ΔE00 6.70
Very Dark Purple
#2A0134
ΔE00 7.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E174F #384F17
analogous
#171C4F #2E174F #4A174F
triadic
#2E174F #4F2E17 #174F2E
tetradic
#2E174F #4F171C #384F17 #174F4A
square
#2E174F #4F171C #384F17 #174F4A
split-complementary
#2E174F #4F4A17 #1C4F17
monochromatic
#0E0718 #120920 #2E174F #4A257E #6533AE
Accessibility & contrast
On white
15.54
#2E174F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.35
#2E174F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E174F
15.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E174F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E174F | 1.00 | 15.54 | 1.35 | 15.54 |
| #FFFFFF | 15.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#00234E
Tritanopia (blue-blind)
#262430
Achromatopsia (no color)
#242424
Design tokens & code
CSS
--color: #2e174f; /* rgb */ color: rgb(46, 23, 79); /* oklch */ color: oklch(27.1% 0.098 298.5);
Tailwind
colors: {
custom: {
50: '#6a5581',
500: '#2e174f',
950: '#000000',
},
}SCSS
$custom: #2e174f; $custom-light: #6a5581; $custom-dark: #000000;
JSON
{
"hex": "#2e174f",
"rgb": {
"r": 46,
"g": 23,
"b": 79
},
"hsl": {
"h": 264.643,
"s": 54.902,
"l": 20
},
"oklch": {
"l": 0.27096,
"c": 0.09814,
"h": 298.5
},
"luminance": 0.01758
}Semantic roles & 50–950 ramp
primary
#2E174F
secondary
#68863C
accent
#DE4AA1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C