#2E21B3#2E21B3
#2E21B3 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.9% C 0.213 H 274.1°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).
Color values
| HEX | #2E21B3 |
|---|---|
| RGB | rgb(46, 33, 179) |
| HSL | hsl(245, 69%, 42%) |
| HSV | hsv(245, 82%, 70%) |
| CMYK | cmyk(74.3%, 81.6%, 0%, 29.8%) |
| CIE-LAB | lab(26.51, 51.25, -73.52) |
| CIE-LCH | lch(26.51, 89.62, 304.88°) |
| OKLab | oklab(38.92% 0.0151 -0.2126) |
| OKLCH | oklch(38.92% 0.213 274.1) |
| XYZ | xyz(9.8046, 4.9222, 43.0725) |
| Luminance | 0.0492 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 1.92
True Blue
#010FCC
ΔE00 3.61
Ultramarine
#2000B1
ΔE00 4.21
Mediumblue
#0000CD
ΔE00 4.33
Cobalt Blue
#030AA7
ΔE00 4.67
Royal Blue (survey)
#0504AA
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E21B3 #A6B321
analogous
#215DB3 #2E21B3 #7721B3
triadic
#2E21B3 #B32E21 #21B32E
tetradic
#2E21B3 #B3215D #A6B321 #21B377
square
#2E21B3 #B3215D #A6B321 #21B377
split-complementary
#2E21B3 #B37721 #5DB321
monochromatic
#130E4C #21177F #2E21B3 #4637DA #766BE4
Accessibility & contrast
On white
10.58
#2E21B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#2E21B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E21B3
10.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E21B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E21B3 | 1.00 | 10.58 | 1.98 | 10.58 |
| #FFFFFF | 10.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045B7
Deuteranopia (green-blind)
#0038B1
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #2e21b3; /* rgb */ color: rgb(46, 33, 179); /* oklch */ color: oklch(38.9% 0.213 274.1);
Tailwind
colors: {
custom: {
50: '#7d61cb',
500: '#2e21b3',
950: '#000000',
},
}SCSS
$custom: #2e21b3; $custom-light: #7d61cb; $custom-dark: #000000;
JSON
{
"hex": "#2e21b3",
"rgb": {
"r": 46,
"g": 33,
"b": 179
},
"hsl": {
"h": 245.342,
"s": 68.868,
"l": 41.569
},
"oklch": {
"l": 0.38917,
"c": 0.21317,
"h": 274.1
},
"luminance": 0.04923
}Semantic roles & 50–950 ramp
primary
#2E21B3
secondary
#C1CA66
accent
#EC3CDC
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982