#2A2EA2#2A2EA2
#2A2EA2 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.181 H 272.5°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2EA2 |
|---|---|
| RGB | rgb(42, 46, 162) |
| HSL | hsl(238, 59%, 40%) |
| HSV | hsv(238, 74%, 64%) |
| CMYK | cmyk(74.1%, 71.6%, 0%, 36.5%) |
| CIE-LAB | lab(26.89, 38.30, -62.67) |
| CIE-LCH | lch(26.89, 73.45, 301.43°) |
| OKLab | oklab(38.57% 0.008 -0.1813) |
| OKLCH | oklch(38.57% 0.181 272.5) |
| XYZ | xyz(8.4512, 5.0540, 34.7055) |
| Luminance | 0.0505 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.24
Indigo Blue
#3A18B1
ΔE00 5.38
Royal
#0C1793
ΔE00 5.84
Blueberry
#464196
ΔE00 6.53
Cobalt Blue
#030AA7
ΔE00 6.85
True Blue
#010FCC
ΔE00 7.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2EA2 #A29E2A
analogous
#2A6AA2 #2A2EA2 #622AA2
triadic
#2A2EA2 #A22A2E #2EA22A
tetradic
#2A2EA2 #A22A6A #A29E2A #2AA262
square
#2A2EA2 #A22A6A #A29E2A #2AA262
split-complementary
#2A2EA2 #A2622A #6AA22A
monochromatic
#111241 #1D2071 #2A2EA2 #3D41CD #6D71D9
Accessibility & contrast
On white
10.44
#2A2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#2A2EA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2EA2
10.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2EA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2EA2 | 1.00 | 10.44 | 2.01 | 10.44 |
| #FFFFFF | 10.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #2a2ea2; /* rgb */ color: rgb(42, 46, 162); /* oklch */ color: oklch(38.6% 0.181 272.5);
Tailwind
colors: {
custom: {
50: '#7768bf',
500: '#2a2ea2',
950: '#000000',
},
}SCSS
$custom: #2a2ea2; $custom-light: #7768bf; $custom-dark: #000000;
JSON
{
"hex": "#2a2ea2",
"rgb": {
"r": 42,
"g": 46,
"b": 162
},
"hsl": {
"h": 238,
"s": 58.824,
"l": 40
},
"oklch": {
"l": 0.38571,
"c": 0.18149,
"h": 272.5
},
"luminance": 0.05055
}Semantic roles & 50–950 ramp
primary
#2A2EA2
secondary
#C0BD68
accent
#DD46E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81