#2E176E#2E176E
#2E176E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.139 H 286.8°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).
Color values
| HEX | #2E176E |
|---|---|
| RGB | rgb(46, 23, 110) |
| HSL | hsl(256, 65%, 26%) |
| HSV | hsv(256, 79%, 43%) |
| CMYK | cmyk(58.2%, 79.1%, 0%, 56.9%) |
| CIE-LAB | lab(17.08, 34.83, -46.20) |
| CIE-LCH | lch(17.08, 57.86, 307.02°) |
| OKLab | oklab(30.07% 0.0402 -0.133) |
| OKLCH | oklch(30.07% 0.139 286.8) |
| XYZ | xyz(4.2467, 2.3192, 14.9727) |
| Luminance | 0.0232 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.21
Indigo (survey)
#380282
ΔE00 4.79
Dark Indigo
#1F0954
ΔE00 5.02
Dark Royal Blue
#02066F
ΔE00 5.18
Darkblue (survey)
#030764
ΔE00 5.30
Deep Blue
#040273
ΔE00 5.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E176E #576E17
analogous
#172B6E #2E176E #59176E
triadic
#2E176E #6E2E17 #176E2E
tetradic
#2E176E #6E172B #576E17 #176E59
square
#2E176E #6E172B #576E17 #176E59
split-complementary
#2E176E #6E5917 #2B6E17
monochromatic
#0B0519 #190C3B #2E176E #4322A1 #582CD3
Accessibility & contrast
On white
14.35
#2E176E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#2E176E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E176E
14.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E176E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E176E | 1.00 | 14.35 | 1.46 | 14.35 |
| #FFFFFF | 14.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#112F41
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2e176e; /* rgb */ color: rgb(46, 23, 110); /* oklch */ color: oklch(30.1% 0.139 286.8);
Tailwind
colors: {
custom: {
50: '#6f5798',
500: '#2e176e',
950: '#000000',
},
}SCSS
$custom: #2e176e; $custom-light: #6f5798; $custom-dark: #000000;
JSON
{
"hex": "#2e176e",
"rgb": {
"r": 46,
"g": 23,
"b": 110
},
"hsl": {
"h": 255.862,
"s": 65.414,
"l": 26.078
},
"oklch": {
"l": 0.30073,
"c": 0.13889,
"h": 286.8
},
"luminance": 0.02319
}Semantic roles & 50–950 ramp
primary
#2E176E
secondary
#89A43D
accent
#E83FBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E