#2E1B6F#2E1B6F
#2E1B6F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.136 H 285.6°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1B6F |
|---|---|
| RGB | rgb(46, 27, 111) |
| HSL | hsl(254, 61%, 27%) |
| HSV | hsv(254, 76%, 44%) |
| CMYK | cmyk(58.6%, 75.7%, 0%, 56.5%) |
| CIE-LAB | lab(17.97, 32.92, -45.38) |
| CIE-LCH | lch(17.97, 56.06, 305.96°) |
| OKLab | oklab(30.74% 0.0365 -0.1306) |
| OKLCH | oklch(30.74% 0.136 285.6) |
| XYZ | xyz(4.3870, 2.5122, 15.2896) |
| Luminance | 0.0251 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.96
Indigo (survey)
#380282
ΔE00 5.44
Dark Indigo
#1F0954
ΔE00 5.57
Dark Royal Blue
#02066F
ΔE00 5.73
Darkblue (survey)
#030764
ΔE00 5.82
Deep Blue
#040273
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1B6F #5C6F1B
analogous
#1B326F #2E1B6F #581B6F
triadic
#2E1B6F #6F2E1B #1B6F2E
tetradic
#2E1B6F #6F1B32 #5C6F1B #1B6F58
square
#2E1B6F #6F1B32 #5C6F1B #1B6F58
split-complementary
#2E1B6F #6F581B #326F1B
monochromatic
#0A0619 #1A0F3E #2E1B6F #4227A0 #5936CE
Accessibility & contrast
On white
13.98
#2E1B6F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2E1B6F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1B6F
13.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1B6F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1B6F | 1.00 | 13.98 | 1.50 | 13.98 |
| #FFFFFF | 13.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#103243
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2e1b6f; /* rgb */ color: rgb(46, 27, 111); /* oklch */ color: oklch(30.7% 0.136 285.6);
Tailwind
colors: {
custom: {
50: '#6f5999',
500: '#2e1b6f',
950: '#000000',
},
}SCSS
$custom: #2e1b6f; $custom-light: #6f5999; $custom-dark: #000000;
JSON
{
"hex": "#2e1b6f",
"rgb": {
"r": 46,
"g": 27,
"b": 111
},
"hsl": {
"h": 253.571,
"s": 60.87,
"l": 27.059
},
"oklch": {
"l": 0.30735,
"c": 0.1356,
"h": 285.6
},
"luminance": 0.02512
}Semantic roles & 50–950 ramp
primary
#2E1B6F
secondary
#8EA442
accent
#E444C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E