#2A2FAB#2A2FAB
#2A2FAB is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.7% C 0.192 H 271.8°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2FAB |
|---|---|
| RGB | rgb(42, 47, 171) |
| HSL | hsl(238, 61%, 42%) |
| HSV | hsv(238, 75%, 67%) |
| CMYK | cmyk(75.4%, 72.5%, 0%, 32.9%) |
| CIE-LAB | lab(28.02, 40.82, -66.24) |
| CIE-LCH | lch(28.02, 77.81, 301.64°) |
| OKLab | oklab(39.66% 0.0062 -0.1917) |
| OKLCH | oklch(39.66% 0.192 271.8) |
| XYZ | xyz(9.3196, 5.4646, 39.0838) |
| Luminance | 0.0547 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.88
Indigo Blue
#3A18B1
ΔE00 5.09
Blue Blue
#2242C7
ΔE00 6.34
True Blue
#010FCC
ΔE00 6.36
Ocean Blue
#4F42B5
ΔE00 6.47
Royal
#0C1793
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2FAB #ABA62A
analogous
#2A70AB #2A2FAB #652AAB
triadic
#2A2FAB #AB2A2F #2FAB2A
tetradic
#2A2FAB #AB2A70 #ABA62A #2AAB65
square
#2A2FAB #AB2A70 #ABA62A #2AAB65
split-complementary
#2A2FAB #AB652A #70AB2A
monochromatic
#121449 #1E217A #2A2FAB #4247D1 #7377DD
Accessibility & contrast
On white
10.03
#2A2FAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.09
#2A2FAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2FAB
10.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2FAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2FAB | 1.00 | 10.03 | 2.09 | 10.03 |
| #FFFFFF | 10.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#003CA9
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #2a2fab; /* rgb */ color: rgb(42, 47, 171); /* oklch */ color: oklch(39.7% 0.192 271.8);
Tailwind
colors: {
custom: {
50: '#7969c5',
500: '#2a2fab',
950: '#000000',
},
}SCSS
$custom: #2a2fab; $custom-light: #7969c5; $custom-dark: #000000;
JSON
{
"hex": "#2a2fab",
"rgb": {
"r": 42,
"g": 47,
"b": 171
},
"hsl": {
"h": 237.674,
"s": 60.563,
"l": 41.765
},
"oklch": {
"l": 0.39656,
"c": 0.19182,
"h": 271.8
},
"luminance": 0.05466
}Semantic roles & 50–950 ramp
primary
#2A2FAB
secondary
#C4C16D
accent
#DE44E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82