#2E127E#2E127E
#2E127E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.163 H 283.5°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).
Color values
| HEX | #2E127E |
|---|---|
| RGB | rgb(46, 18, 126) |
| HSL | hsl(256, 75%, 28%) |
| HSV | hsv(256, 86%, 49%) |
| CMYK | cmyk(63.5%, 85.7%, 0%, 50.6%) |
| CIE-LAB | lab(18.01, 42.10, -54.97) |
| CIE-LCH | lch(18.01, 69.24, 307.45°) |
| OKLab | oklab(31.24% 0.0381 -0.1585) |
| OKLCH | oklch(31.24% 0.163 283.5) |
| XYZ | xyz(5.1078, 2.5195, 19.9518) |
| Luminance | 0.0252 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.56
Midnight Blue
#191970
ΔE00 4.12
Royal
#0C1793
ΔE00 4.28
Navy
#000080
ΔE00 4.38
Darkblue
#00008B
ΔE00 4.43
Deep Blue
#040273
ΔE00 4.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E127E #627E12
analogous
#122C7E #2E127E #64127E
triadic
#2E127E #7E2E12 #127E2E
tetradic
#2E127E #7E122C #627E12 #127E64
square
#2E127E #7E122C #627E12 #127E64
split-complementary
#2E127E #7E6412 #2C7E12
monochromatic
#0A041B #1A0A48 #2E127E #421AB4 #592AE1
Accessibility & contrast
On white
13.96
#2E127E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2E127E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E127E
13.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E127E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E127E | 1.00 | 13.96 | 1.50 | 13.96 |
| #FFFFFF | 13.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2e127e; /* rgb */ color: rgb(46, 18, 126); /* oklch */ color: oklch(31.2% 0.163 283.5);
Tailwind
colors: {
custom: {
50: '#7355a5',
500: '#2e127e',
950: '#000000',
},
}SCSS
$custom: #2e127e; $custom-light: #7355a5; $custom-dark: #000000;
JSON
{
"hex": "#2e127e",
"rgb": {
"r": 46,
"g": 18,
"b": 126
},
"hsl": {
"h": 255.556,
"s": 75,
"l": 28.235
},
"oklch": {
"l": 0.31242,
"c": 0.16301,
"h": 283.5
},
"luminance": 0.0252
}Semantic roles & 50–950 ramp
primary
#2E127E
secondary
#94B438
accent
#F236C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F