#2A2F87#2A2F87
#2A2F87 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.144 H 274.1°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2F87 |
|---|---|
| RGB | rgb(42, 47, 135) |
| HSL | hsl(237, 53%, 35%) |
| HSV | hsv(237, 69%, 53%) |
| CMYK | cmyk(68.9%, 65.2%, 0%, 47.1%) |
| CIE-LAB | lab(24.56, 27.99, -49.88) |
| CIE-LCH | lch(24.56, 57.20, 299.30°) |
| OKLab | oklab(36.1% 0.0103 -0.1439) |
| OKLCH | oklch(36.1% 0.144 274.1) |
| XYZ | xyz(6.3431, 4.2740, 23.4077) |
| Luminance | 0.0428 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.66
Darkslateblue
#483D8B
ΔE00 5.74
Blueberry
#464196
ΔE00 6.14
Midnight Blue
#191970
ΔE00 6.44
Royal
#0C1793
ΔE00 6.62
Marine
#042E60
ΔE00 8.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2F87 #87822A
analogous
#2A5E87 #2A2F87 #542A87
triadic
#2A2F87 #872A2F #2F872A
tetradic
#2A2F87 #872A5E #87822A #2A8754
square
#2A2F87 #872A5E #87822A #2A8754
split-complementary
#2A2F87 #87542A #5E872A
monochromatic
#0D0E2A #1B1F58 #2A2F87 #393FB6 #5E64CD
Accessibility & contrast
On white
11.32
#2A2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#2A2F87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2F87
11.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2F87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2F87 | 1.00 | 11.32 | 1.86 | 11.32 |
| #FFFFFF | 11.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2a2f87; /* rgb */ color: rgb(42, 47, 135); /* oklch */ color: oklch(36.1% 0.144 274.1);
Tailwind
colors: {
custom: {
50: '#7067ab',
500: '#2a2f87',
950: '#000000',
},
}SCSS
$custom: #2a2f87; $custom-light: #7067ab; $custom-dark: #000000;
JSON
{
"hex": "#2a2f87",
"rgb": {
"r": 42,
"g": 47,
"b": 135
},
"hsl": {
"h": 236.774,
"s": 52.542,
"l": 34.706
},
"oklch": {
"l": 0.36097,
"c": 0.14427,
"h": 274.1
},
"luminance": 0.04275
}Semantic roles & 50–950 ramp
primary
#2A2F87
secondary
#B3AE5A
accent
#D44CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F