#2A2EA8#2A2EA8
#2A2EA8 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.2% C 0.189 H 272.2°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2EA8 |
|---|---|
| RGB | rgb(42, 46, 168) |
| HSL | hsl(238, 60%, 41%) |
| HSV | hsv(238, 75%, 66%) |
| CMYK | cmyk(75%, 72.6%, 0%, 34.1%) |
| CIE-LAB | lab(27.50, 40.39, -65.30) |
| CIE-LCH | lch(27.50, 76.78, 301.74°) |
| OKLab | oklab(39.19% 0.0071 -0.189) |
| OKLCH | oklch(39.19% 0.189 272.2) |
| XYZ | xyz(8.9973, 5.2724, 37.5817) |
| Luminance | 0.0527 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.11
Indigo Blue
#3A18B1
ΔE00 4.99
Royal
#0C1793
ΔE00 6.16
True Blue
#010FCC
ΔE00 6.44
Ocean Blue
#4F42B5
ΔE00 6.77
Blue Blue
#2242C7
ΔE00 6.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2EA8 #A8A42A
analogous
#2A6DA8 #2A2EA8 #652AA8
triadic
#2A2EA8 #A82A2E #2EA82A
tetradic
#2A2EA8 #A82A6D #A8A42A #2AA865
square
#2A2EA8 #A82A6D #A8A42A #2AA865
split-complementary
#2A2EA8 #A8652A #6DA82A
monochromatic
#121346 #1E2177 #2A2EA8 #4045CF #7174DB
Accessibility & contrast
On white
10.22
#2A2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#2A2EA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2EA8
10.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2EA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2EA8 | 1.00 | 10.22 | 2.05 | 10.22 |
| #FFFFFF | 10.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#003BA6
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #2a2ea8; /* rgb */ color: rgb(42, 46, 168); /* oklch */ color: oklch(39.2% 0.189 272.2);
Tailwind
colors: {
custom: {
50: '#7868c3',
500: '#2a2ea8',
950: '#000000',
},
}SCSS
$custom: #2a2ea8; $custom-light: #7868c3; $custom-dark: #000000;
JSON
{
"hex": "#2a2ea8",
"rgb": {
"r": 42,
"g": 46,
"b": 168
},
"hsl": {
"h": 238.095,
"s": 60,
"l": 41.176
},
"oklch": {
"l": 0.3919,
"c": 0.18909,
"h": 272.2
},
"luminance": 0.05273
}Semantic roles & 50–950 ramp
primary
#2A2EA8
secondary
#C3C06B
accent
#DE45E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82