#2E319E#2E319E
#2E319E is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.172 H 273.8°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).
Color values
| HEX | #2E319E |
|---|---|
| RGB | rgb(46, 49, 158) |
| HSL | hsl(238, 55%, 40%) |
| HSV | hsv(238, 71%, 62%) |
| CMYK | cmyk(70.9%, 69%, 0%, 38%) |
| CIE-LAB | lab(27.42, 35.50, -59.36) |
| CIE-LCH | lch(27.42, 69.16, 300.88°) |
| OKLab | oklab(38.9% 0.0114 -0.1715) |
| OKLCH | oklch(38.9% 0.172 273.8) |
| XYZ | xyz(8.3945, 5.2453, 32.9112) |
| Luminance | 0.0525 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.98
Blueberry
#464196
ΔE00 5.58
Darkslateblue
#483D8B
ΔE00 6.18
Indigo Blue
#3A18B1
ΔE00 6.21
Royal
#0C1793
ΔE00 6.52
Ocean Blue
#4F42B5
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E319E #9E9B2E
analogous
#2E699E #2E319E #632E9E
triadic
#2E319E #9E2E31 #319E2E
tetradic
#2E319E #9E2E69 #9E9B2E #2E9E63
square
#2E319E #9E2E69 #9E9B2E #2E9E63
split-complementary
#2E319E #9E632E #699E2E
monochromatic
#12143F #20226F #2E319E #4145C8 #7173D6
Accessibility & contrast
On white
10.25
#2E319E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#2E319E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E319E
10.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E319E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E319E | 1.00 | 10.25 | 2.05 | 10.25 |
| #FFFFFF | 10.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#003C9C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #2e319e; /* rgb */ color: rgb(46, 49, 158); /* oklch */ color: oklch(38.9% 0.172 273.8);
Tailwind
colors: {
custom: {
50: '#776abc',
500: '#2e319e',
950: '#000000',
},
}SCSS
$custom: #2e319e; $custom-light: #776abc; $custom-dark: #000000;
JSON
{
"hex": "#2e319e",
"rgb": {
"r": 46,
"g": 49,
"b": 158
},
"hsl": {
"h": 238.393,
"s": 54.902,
"l": 40
},
"oklch": {
"l": 0.38903,
"c": 0.17191,
"h": 273.8
},
"luminance": 0.05246
}Semantic roles & 50–950 ramp
primary
#2E319E
secondary
#BDBB6B
accent
#DA4ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81