#2E21A4#2E21A4
#2E21A4 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.2% C 0.196 H 275.6°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).
Color values
| HEX | #2E21A4 |
|---|---|
| RGB | rgb(46, 33, 164) |
| HSL | hsl(246, 66%, 39%) |
| HSV | hsv(246, 80%, 64%) |
| CMYK | cmyk(72%, 79.9%, 0%, 35.7%) |
| CIE-LAB | lab(24.79, 46.62, -67.34) |
| CIE-LCH | lch(24.79, 81.91, 304.70°) |
| OKLab | oklab(37.22% 0.019 -0.1947) |
| OKLCH | oklch(37.22% 0.196 275.6) |
| XYZ | xyz(8.3692, 4.3481, 35.5130) |
| Luminance | 0.0435 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.65
Royal
#0C1793
ΔE00 4.03
Cobalt Blue
#030AA7
ΔE00 4.12
Ultramarine
#2000B1
ΔE00 4.31
Royal Blue (survey)
#0504AA
ΔE00 4.50
True Blue
#010FCC
ΔE00 5.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E21A4 #97A421
analogous
#2155A4 #2E21A4 #6F21A4
triadic
#2E21A4 #A42E21 #21A42E
tetradic
#2E21A4 #A42155 #97A421 #21A46F
square
#2E21A4 #A42155 #97A421 #21A46F
split-complementary
#2E21A4 #A46F21 #55A421
monochromatic
#110C3E #201771 #2E21A4 #3E2DD5 #6D60DF
Accessibility & contrast
On white
11.23
#2E21A4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#2E21A4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E21A4
11.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E21A4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E21A4 | 1.00 | 11.23 | 1.87 | 11.23 |
| #FFFFFF | 11.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A8
Deuteranopia (green-blind)
#0035A2
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #2e21a4; /* rgb */ color: rgb(46, 33, 164); /* oklch */ color: oklch(37.2% 0.196 275.6);
Tailwind
colors: {
custom: {
50: '#7a60c0',
500: '#2e21a4',
950: '#000000',
},
}SCSS
$custom: #2e21a4; $custom-light: #7a60c0; $custom-dark: #000000;
JSON
{
"hex": "#2e21a4",
"rgb": {
"r": 46,
"g": 33,
"b": 164
},
"hsl": {
"h": 245.954,
"s": 66.497,
"l": 38.627
},
"oklch": {
"l": 0.37219,
"c": 0.19563,
"h": 275.6
},
"luminance": 0.04349
}Semantic roles & 50–950 ramp
primary
#2E21A4
secondary
#BAC45D
accent
#E93ED8
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981