#2A2FA5#2A2FA5
#2A2FA5 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.184 H 272.2°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2FA5 |
|---|---|
| RGB | rgb(42, 47, 165) |
| HSL | hsl(238, 59%, 41%) |
| HSV | hsv(238, 75%, 65%) |
| CMYK | cmyk(74.5%, 71.5%, 0%, 35.3%) |
| CIE-LAB | lab(27.41, 38.74, -63.63) |
| CIE-LCH | lch(27.41, 74.50, 301.34°) |
| OKLab | oklab(39.04% 0.007 -0.1841) |
| OKLCH | oklch(39.04% 0.184 272.2) |
| XYZ | xyz(8.7606, 5.2410, 36.1399) |
| Luminance | 0.0524 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.90
Indigo Blue
#3A18B1
ΔE00 5.41
Royal
#0C1793
ΔE00 6.21
Blueberry
#464196
ΔE00 6.47
Ocean Blue
#4F42B5
ΔE00 6.77
Blue Blue
#2242C7
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2FA5 #A5A02A
analogous
#2A6CA5 #2A2FA5 #622AA5
triadic
#2A2FA5 #A52A2F #2FA52A
tetradic
#2A2FA5 #A52A6C #A5A02A #2AA562
square
#2A2FA5 #A52A6C #A5A02A #2AA562
split-complementary
#2A2FA5 #A5622A #6CA52A
monochromatic
#111343 #1E2174 #2A2FA5 #3E44CE #6F73DA
Accessibility & contrast
On white
10.25
#2A2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#2A2FA5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2FA5
10.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2FA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2FA5 | 1.00 | 10.25 | 2.05 | 10.25 |
| #FFFFFF | 10.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#003BA3
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #2a2fa5; /* rgb */ color: rgb(42, 47, 165); /* oklch */ color: oklch(39.0% 0.184 272.2);
Tailwind
colors: {
custom: {
50: '#7768c1',
500: '#2a2fa5',
950: '#000000',
},
}SCSS
$custom: #2a2fa5; $custom-light: #7768c1; $custom-dark: #000000;
JSON
{
"hex": "#2a2fa5",
"rgb": {
"r": 42,
"g": 47,
"b": 165
},
"hsl": {
"h": 237.561,
"s": 59.42,
"l": 40.588
},
"oklch": {
"l": 0.39037,
"c": 0.18423,
"h": 272.2
},
"luminance": 0.05242
}Semantic roles & 50–950 ramp
primary
#2A2FA5
secondary
#C1BE69
accent
#DC45E3
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81