#2E137F#2E137F
#2E137F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.163 H 283.2°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).
Color values
| HEX | #2E137F |
|---|---|
| RGB | rgb(46, 19, 127) |
| HSL | hsl(255, 74%, 29%) |
| HSV | hsv(255, 85%, 50%) |
| CMYK | cmyk(63.8%, 85%, 0%, 50.2%) |
| CIE-LAB | lab(18.27, 41.97, -55.17) |
| CIE-LCH | lch(18.27, 69.31, 307.26°) |
| OKLab | oklab(31.46% 0.0372 -0.1591) |
| OKLCH | oklch(31.46% 0.163 283.2) |
| XYZ | xyz(5.1892, 2.5785, 20.2988) |
| Luminance | 0.0258 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.67
Midnight Blue
#191970
ΔE00 4.10
Royal
#0C1793
ΔE00 4.12
Darkblue
#00008B
ΔE00 4.45
Navy
#000080
ΔE00 4.47
Deep Blue
#040273
ΔE00 4.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E137F #647F13
analogous
#132E7F #2E137F #64137F
triadic
#2E137F #7F2E13 #137F2E
tetradic
#2E137F #7F132E #647F13 #137F64
square
#2E137F #7F132E #647F13 #137F64
split-complementary
#2E137F #7F6413 #2E7F13
monochromatic
#0A041B #1B0B4A #2E137F #411BB4 #5A2DE0
Accessibility & contrast
On white
13.85
#2E137F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#2E137F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E137F
13.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E137F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E137F | 1.00 | 13.85 | 1.52 | 13.85 |
| #FFFFFF | 13.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2e137f; /* rgb */ color: rgb(46, 19, 127); /* oklch */ color: oklch(31.5% 0.163 283.2);
Tailwind
colors: {
custom: {
50: '#7356a5',
500: '#2e137f',
950: '#000000',
},
}SCSS
$custom: #2e137f; $custom-light: #7356a5; $custom-dark: #000000;
JSON
{
"hex": "#2e137f",
"rgb": {
"r": 46,
"g": 19,
"b": 127
},
"hsl": {
"h": 255,
"s": 73.973,
"l": 28.627
},
"oklch": {
"l": 0.31458,
"c": 0.16339,
"h": 283.2
},
"luminance": 0.02579
}Semantic roles & 50–950 ramp
primary
#2E137F
secondary
#96B439
accent
#F137C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F