#2E137B#2E137B
#2E137B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.159 H 284.1°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).
Color values
| HEX | #2E137B |
|---|---|
| RGB | rgb(46, 19, 123) |
| HSL | hsl(256, 73%, 28%) |
| HSV | hsv(256, 85%, 48%) |
| CMYK | cmyk(62.6%, 84.6%, 0%, 51.8%) |
| CIE-LAB | lab(17.81, 40.78, -53.37) |
| CIE-LCH | lch(17.81, 67.17, 307.38°) |
| OKLab | oklab(31.01% 0.0387 -0.1539) |
| OKLCH | oklch(31.01% 0.159 284.1) |
| XYZ | xyz(4.9336, 2.4763, 18.9530) |
| Luminance | 0.0248 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.85
Midnight Blue
#191970
ΔE00 3.81
Navy
#000080
ΔE00 4.60
Royal
#0C1793
ΔE00 4.62
Deep Blue
#040273
ΔE00 4.65
Dark Royal Blue
#02066F
ΔE00 4.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E137B #607B13
analogous
#132C7B #2E137B #62137B
triadic
#2E137B #7B2E13 #137B2E
tetradic
#2E137B #7B132C #607B13 #137B62
square
#2E137B #7B132C #607B13 #137B62
split-complementary
#2E137B #7B6213 #2C7B13
monochromatic
#0A041B #1A0B46 #2E137B #421BB0 #592ADE
Accessibility & contrast
On white
14.04
#2E137B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2E137B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E137B
14.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E137B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E137B | 1.00 | 14.04 | 1.50 | 14.04 |
| #FFFFFF | 14.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2e137b; /* rgb */ color: rgb(46, 19, 123); /* oklch */ color: oklch(31.0% 0.159 284.1);
Tailwind
colors: {
custom: {
50: '#7256a2',
500: '#2e137b',
950: '#000000',
},
}SCSS
$custom: #2e137b; $custom-light: #7256a2; $custom-dark: #000000;
JSON
{
"hex": "#2e137b",
"rgb": {
"r": 46,
"g": 19,
"b": 123
},
"hsl": {
"h": 255.577,
"s": 73.239,
"l": 27.843
},
"oklch": {
"l": 0.31006,
"c": 0.15866,
"h": 284.1
},
"luminance": 0.02477
}Semantic roles & 50–950 ramp
primary
#2E137B
secondary
#92B139
accent
#F038C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F