#2A2F97#2A2F97
#2A2F97 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.6% C 0.166 H 273.0°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2F97 |
|---|---|
| RGB | rgb(42, 47, 151) |
| HSL | hsl(237, 56%, 38%) |
| HSV | hsv(237, 72%, 59%) |
| CMYK | cmyk(72.2%, 68.9%, 0%, 40.8%) |
| CIE-LAB | lab(26.04, 33.79, -57.36) |
| CIE-LCH | lch(26.04, 66.58, 300.50°) |
| OKLab | oklab(37.63% 0.0088 -0.1658) |
| OKLCH | oklch(37.63% 0.166 273) |
| XYZ | xyz(7.5554, 4.7589, 29.7925) |
| Luminance | 0.0476 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.76
Royal
#0C1793
ΔE00 5.89
Blueberry
#464196
ΔE00 6.00
Darkslateblue
#483D8B
ΔE00 6.27
Indigo Blue
#3A18B1
ΔE00 6.63
Cobalt Blue
#030AA7
ΔE00 7.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2F97 #97922A
analogous
#2A6597 #2A2F97 #5C2A97
triadic
#2A2F97 #972A2F #2F972A
tetradic
#2A2F97 #972A65 #97922A #2A975C
square
#2A2F97 #972A65 #97922A #2A975C
split-complementary
#2A2F97 #975C2A #65972A
monochromatic
#0F1137 #1D2067 #2A2F97 #373EC7 #676CD5
Accessibility & contrast
On white
10.76
#2A2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.95
#2A2F97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2F97
10.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2F97 | 1.00 | 10.76 | 1.95 | 10.76 |
| #FFFFFF | 10.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2a2f97; /* rgb */ color: rgb(42, 47, 151); /* oklch */ color: oklch(37.6% 0.166 273.0);
Tailwind
colors: {
custom: {
50: '#7468b7',
500: '#2a2f97',
950: '#000000',
},
}SCSS
$custom: #2a2f97; $custom-light: #7468b7; $custom-dark: #000000;
JSON
{
"hex": "#2a2f97",
"rgb": {
"r": 42,
"g": 47,
"b": 151
},
"hsl": {
"h": 237.248,
"s": 56.477,
"l": 37.843
},
"oklch": {
"l": 0.3763,
"c": 0.16604,
"h": 273
},
"luminance": 0.0476
}Semantic roles & 50–950 ramp
primary
#2A2F97
secondary
#BBB762
accent
#D948E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80