#2A2FA7#2A2FA7
#2A2FA7 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.2% C 0.187 H 272.1°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2FA7 |
|---|---|
| RGB | rgb(42, 47, 167) |
| HSL | hsl(238, 60%, 41%) |
| HSV | hsv(238, 75%, 65%) |
| CMYK | cmyk(74.9%, 71.9%, 0%, 34.5%) |
| CIE-LAB | lab(27.61, 39.44, -64.50) |
| CIE-LCH | lch(27.61, 75.61, 301.44°) |
| OKLab | oklab(39.24% 0.0068 -0.1867) |
| OKLCH | oklch(39.24% 0.187 272.1) |
| XYZ | xyz(8.9441, 5.3144, 37.1061) |
| Luminance | 0.0532 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.87
Indigo Blue
#3A18B1
ΔE00 5.29
Royal
#0C1793
ΔE00 6.31
Blueberry
#464196
ΔE00 6.57
Blue Blue
#2242C7
ΔE00 6.65
Ocean Blue
#4F42B5
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2FA7 #A7A22A
analogous
#2A6DA7 #2A2FA7 #632AA7
triadic
#2A2FA7 #A72A2F #2FA72A
tetradic
#2A2FA7 #A72A6D #A7A22A #2AA763
square
#2A2FA7 #A72A6D #A7A22A #2AA763
split-complementary
#2A2FA7 #A7632A #6DA72A
monochromatic
#111345 #1E2176 #2A2FA7 #3F45CF #7075DB
Accessibility & contrast
On white
10.18
#2A2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#2A2FA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2FA7
10.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2FA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2FA7 | 1.00 | 10.18 | 2.06 | 10.18 |
| #FFFFFF | 10.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #2a2fa7; /* rgb */ color: rgb(42, 47, 167); /* oklch */ color: oklch(39.2% 0.187 272.1);
Tailwind
colors: {
custom: {
50: '#7868c2',
500: '#2a2fa7',
950: '#000000',
},
}SCSS
$custom: #2a2fa7; $custom-light: #7868c2; $custom-dark: #000000;
JSON
{
"hex": "#2a2fa7",
"rgb": {
"r": 42,
"g": 47,
"b": 167
},
"hsl": {
"h": 237.6,
"s": 59.809,
"l": 40.98
},
"oklch": {
"l": 0.39242,
"c": 0.18678,
"h": 272.1
},
"luminance": 0.05315
}Semantic roles & 50–950 ramp
primary
#2A2FA7
secondary
#C2BF6B
accent
#DD45E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82