#2E2156#2E2156
#2E2156 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.5% C 0.092 H 291.0°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2E2156 |
|---|---|
| RGB | rgb(46, 33, 86) |
| HSL | hsl(255, 45%, 23%) |
| HSV | hsv(255, 62%, 34%) |
| CMYK | cmyk(46.5%, 61.6%, 0%, 66.3%) |
| CIE-LAB | lab(17.18, 20.91, -30.16) |
| CIE-LCH | lch(17.18, 36.70, 304.73°) |
| OKLab | oklab(29.48% 0.0329 -0.0859) |
| OKLCH | oklch(29.48% 0.092 291) |
| XYZ | xyz(3.3498, 2.3403, 9.0775) |
| Luminance | 0.0234 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 6.77
Navy Blue (survey)
#001146
ΔE00 7.51
Midnight Blue
#191970
ΔE00 7.52
Navy (survey)
#01153E
ΔE00 8.42
Navy Blue
#1B2A4A
ΔE00 8.76
Night Blue
#040348
ΔE00 8.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E2156 #495621
analogous
#212E56 #2E2156 #482156
triadic
#2E2156 #562E21 #21562E
tetradic
#2E2156 #56212E #495621 #215648
square
#2E2156 #56212E #495621 #215648
split-complementary
#2E2156 #564821 #2E5621
monochromatic
#0C0816 #16102A #2E2156 #463282 #5D43AE
Accessibility & contrast
On white
14.31
#2E2156 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#2E2156 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E2156
14.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E2156 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E2156 | 1.00 | 14.31 | 1.47 | 14.31 |
| #FFFFFF | 14.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#042B58
Deuteranopia (green-blind)
#062955
Tritanopia (blue-blind)
#232D38
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2e2156; /* rgb */ color: rgb(46, 33, 86); /* oklch */ color: oklch(29.5% 0.092 291.0);
Tailwind
colors: {
custom: {
50: '#6a5c86',
500: '#2e2156',
950: '#000000',
},
}SCSS
$custom: #2e2156; $custom-light: #6a5c86; $custom-dark: #000000;
JSON
{
"hex": "#2e2156",
"rgb": {
"r": 46,
"g": 33,
"b": 86
},
"hsl": {
"h": 254.717,
"s": 44.538,
"l": 23.333
},
"oklch": {
"l": 0.29476,
"c": 0.09199,
"h": 291
},
"luminance": 0.0234
}Semantic roles & 50–950 ramp
primary
#2E2156
secondary
#7A8A49
accent
#D454B5
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C