#2E229E#2E229E
#2E229E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.188 H 276.2°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).
Color values
| HEX | #2E229E |
|---|---|
| RGB | rgb(46, 34, 158) |
| HSL | hsl(246, 65%, 38%) |
| HSV | hsv(246, 78%, 62%) |
| CMYK | cmyk(70.9%, 78.5%, 0%, 38%) |
| CIE-LAB | lab(24.30, 44.21, -64.50) |
| CIE-LCH | lch(24.30, 78.20, 304.43°) |
| OKLab | oklab(36.68% 0.0201 -0.1865) |
| OKLCH | oklch(36.68% 0.188 276.2) |
| XYZ | xyz(7.8683, 4.1928, 32.7358) |
| Luminance | 0.0419 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.39
Royal
#0C1793
ΔE00 3.66
Cobalt Blue
#030AA7
ΔE00 4.38
Royal Blue (survey)
#0504AA
ΔE00 4.82
Ultramarine
#2000B1
ΔE00 4.83
True Blue
#010FCC
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E229E #929E22
analogous
#22549E #2E229E #6C229E
triadic
#2E229E #9E2E22 #229E2E
tetradic
#2E229E #9E2254 #929E22 #229E6C
square
#2E229E #9E2254 #929E22 #229E6C
split-complementary
#2E229E #9E6C22 #549E22
monochromatic
#110C39 #1F176C #2E229E #3D2DD0 #6A5EDC
Accessibility & contrast
On white
11.42
#2E229E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#2E229E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E229E
11.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E229E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E229E | 1.00 | 11.42 | 1.84 | 11.42 |
| #FFFFFF | 11.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00349C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2e229e; /* rgb */ color: rgb(46, 34, 158); /* oklch */ color: oklch(36.7% 0.188 276.2);
Tailwind
colors: {
custom: {
50: '#7860bc',
500: '#2e229e',
950: '#000000',
},
}SCSS
$custom: #2e229e; $custom-light: #7860bc; $custom-dark: #000000;
JSON
{
"hex": "#2e229e",
"rgb": {
"r": 46,
"g": 34,
"b": 158
},
"hsl": {
"h": 245.806,
"s": 64.583,
"l": 37.647
},
"oklch": {
"l": 0.36678,
"c": 0.18754,
"h": 276.2
},
"luminance": 0.04194
}Semantic roles & 50–950 ramp
primary
#2E229E
secondary
#B7C15B
accent
#E840D7
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981