#2A2F96#2A2F96
#2A2F96 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.165 H 273.1°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2F96 |
|---|---|
| RGB | rgb(42, 47, 150) |
| HSL | hsl(237, 56%, 38%) |
| HSV | hsv(237, 72%, 59%) |
| CMYK | cmyk(72%, 68.7%, 0%, 41.2%) |
| CIE-LAB | lab(25.94, 33.44, -56.91) |
| CIE-LCH | lch(25.94, 66.00, 300.44°) |
| OKLab | oklab(37.53% 0.0089 -0.1645) |
| OKLCH | oklch(37.53% 0.165 273.1) |
| XYZ | xyz(7.4745, 4.7265, 29.3666) |
| Luminance | 0.0473 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.86
Royal
#0C1793
ΔE00 5.91
Blueberry
#464196
ΔE00 5.99
Darkslateblue
#483D8B
ΔE00 6.22
Indigo Blue
#3A18B1
ΔE00 6.74
Midnight Blue
#191970
ΔE00 7.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2F96 #96912A
analogous
#2A6596 #2A2F96 #5B2A96
triadic
#2A2F96 #962A2F #2F962A
tetradic
#2A2F96 #962A65 #96912A #2A965B
square
#2A2F96 #962A65 #96912A #2A965B
split-complementary
#2A2F96 #965B2A #65962A
monochromatic
#0F1136 #1D2066 #2A2F96 #373EC6 #666BD4
Accessibility & contrast
On white
10.79
#2A2F96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.95
#2A2F96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2F96
10.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2F96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2F96 | 1.00 | 10.79 | 1.95 | 10.79 |
| #FFFFFF | 10.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#003894
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2a2f96; /* rgb */ color: rgb(42, 47, 150); /* oklch */ color: oklch(37.5% 0.165 273.1);
Tailwind
colors: {
custom: {
50: '#7468b6',
500: '#2a2f96',
950: '#000000',
},
}SCSS
$custom: #2a2f96; $custom-light: #7468b6; $custom-dark: #000000;
JSON
{
"hex": "#2a2f96",
"rgb": {
"r": 42,
"g": 47,
"b": 150
},
"hsl": {
"h": 237.222,
"s": 56.25,
"l": 37.647
},
"oklch": {
"l": 0.37531,
"c": 0.16471,
"h": 273.1
},
"luminance": 0.04727
}Semantic roles & 50–950 ramp
primary
#2A2F96
secondary
#BAB661
accent
#D948E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80