#2A2EA4#2A2EA4
#2A2EA4 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.184 H 272.4°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2EA4 |
|---|---|
| RGB | rgb(42, 46, 164) |
| HSL | hsl(238, 59%, 40%) |
| HSV | hsv(238, 74%, 64%) |
| CMYK | cmyk(74.4%, 72%, 0%, 35.7%) |
| CIE-LAB | lab(27.09, 39.00, -63.55) |
| CIE-LCH | lch(27.09, 74.57, 301.54°) |
| OKLab | oklab(38.78% 0.0077 -0.1839) |
| OKLCH | oklch(38.78% 0.184 272.4) |
| XYZ | xyz(8.6304, 5.1257, 35.6493) |
| Luminance | 0.0513 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.17
Indigo Blue
#3A18B1
ΔE00 5.24
Royal
#0C1793
ΔE00 5.94
Blueberry
#464196
ΔE00 6.62
Cobalt Blue
#030AA7
ΔE00 6.81
True Blue
#010FCC
ΔE00 6.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2EA4 #A4A02A
analogous
#2A6BA4 #2A2EA4 #632AA4
triadic
#2A2EA4 #A42A2E #2EA42A
tetradic
#2A2EA4 #A42A6B #A4A02A #2AA463
square
#2A2EA4 #A42A6B #A4A02A #2AA463
split-complementary
#2A2EA4 #A4632A #6BA42A
monochromatic
#111343 #1E2073 #2A2EA4 #3E42CD #6E72DA
Accessibility & contrast
On white
10.37
#2A2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#2A2EA4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2EA4
10.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2EA4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2EA4 | 1.00 | 10.37 | 2.03 | 10.37 |
| #FFFFFF | 10.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#003AA2
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #2a2ea4; /* rgb */ color: rgb(42, 46, 164); /* oklch */ color: oklch(38.8% 0.184 272.4);
Tailwind
colors: {
custom: {
50: '#7768c0',
500: '#2a2ea4',
950: '#000000',
},
}SCSS
$custom: #2a2ea4; $custom-light: #7768c0; $custom-dark: #000000;
JSON
{
"hex": "#2a2ea4",
"rgb": {
"r": 42,
"g": 46,
"b": 164
},
"hsl": {
"h": 238.033,
"s": 59.223,
"l": 40.392
},
"oklch": {
"l": 0.38776,
"c": 0.18404,
"h": 272.4
},
"luminance": 0.05127
}Semantic roles & 50–950 ramp
primary
#2A2EA4
secondary
#C1BE69
accent
#DD45E2
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81