#2A2FA4#2A2FA4
#2A2FA4 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.183 H 272.2°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2FA4 |
|---|---|
| RGB | rgb(42, 47, 164) |
| HSL | hsl(238, 59%, 40%) |
| HSV | hsv(238, 74%, 64%) |
| CMYK | cmyk(74.4%, 71.3%, 0%, 35.7%) |
| CIE-LAB | lab(27.31, 38.39, -63.19) |
| CIE-LCH | lch(27.31, 73.94, 301.28°) |
| OKLab | oklab(38.93% 0.0072 -0.1828) |
| OKLCH | oklch(38.93% 0.183 272.2) |
| XYZ | xyz(8.6699, 5.2047, 35.6624) |
| Luminance | 0.0521 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.92
Indigo Blue
#3A18B1
ΔE00 5.48
Royal
#0C1793
ΔE00 6.16
Blueberry
#464196
ΔE00 6.43
Ocean Blue
#4F42B5
ΔE00 6.83
Blue Blue
#2242C7
ΔE00 6.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2FA4 #A49F2A
analogous
#2A6CA4 #2A2FA4 #622AA4
triadic
#2A2FA4 #A42A2F #2FA42A
tetradic
#2A2FA4 #A42A6C #A49F2A #2AA462
square
#2A2FA4 #A42A6C #A49F2A #2AA462
split-complementary
#2A2FA4 #A4622A #6CA42A
monochromatic
#111343 #1E2173 #2A2FA4 #3E44CD #6E73DA
Accessibility & contrast
On white
10.29
#2A2FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#2A2FA4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2FA4
10.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2FA4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2FA4 | 1.00 | 10.29 | 2.04 | 10.29 |
| #FFFFFF | 10.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#003BA2
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #2a2fa4; /* rgb */ color: rgb(42, 47, 164); /* oklch */ color: oklch(38.9% 0.183 272.2);
Tailwind
colors: {
custom: {
50: '#7768c0',
500: '#2a2fa4',
950: '#000000',
},
}SCSS
$custom: #2a2fa4; $custom-light: #7768c0; $custom-dark: #000000;
JSON
{
"hex": "#2a2fa4",
"rgb": {
"r": 42,
"g": 47,
"b": 164
},
"hsl": {
"h": 237.541,
"s": 59.223,
"l": 40.392
},
"oklch": {
"l": 0.38935,
"c": 0.18296,
"h": 272.2
},
"luminance": 0.05206
}Semantic roles & 50–950 ramp
primary
#2A2FA4
secondary
#C1BD69
accent
#DC45E2
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81