#2A2F8E#2A2F8E
#2A2F8E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.154 H 273.6°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2F8E |
|---|---|
| RGB | rgb(42, 47, 142) |
| HSL | hsl(237, 54%, 36%) |
| HSV | hsv(237, 70%, 56%) |
| CMYK | cmyk(70.4%, 66.9%, 0%, 44.3%) |
| CIE-LAB | lab(25.19, 30.55, -53.20) |
| CIE-LCH | lch(25.19, 61.35, 299.86°) |
| OKLab | oklab(36.76% 0.0097 -0.1536) |
| OKLCH | oklch(36.76% 0.154 273.6) |
| XYZ | xyz(6.8522, 4.4776, 26.0891) |
| Luminance | 0.0448 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.75
Darkslateblue
#483D8B
ΔE00 5.87
Blueberry
#464196
ΔE00 5.97
Royal
#0C1793
ΔE00 6.16
Midnight Blue
#191970
ΔE00 6.90
Indigo Blue
#3A18B1
ΔE00 7.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2F8E #8E892A
analogous
#2A618E #2A2F8E #572A8E
triadic
#2A2F8E #8E2A2F #2F8E2A
tetradic
#2A2F8E #8E2A61 #8E892A #2A8E57
square
#2A2F8E #8E2A61 #8E892A #2A8E57
split-complementary
#2A2F8E #8E572A #618E2A
monochromatic
#0E1030 #1C1F5F #2A2F8E #383FBD #6267D1
Accessibility & contrast
On white
11.08
#2A2F8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#2A2F8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2F8E
11.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2F8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2F8E | 1.00 | 11.08 | 1.90 | 11.08 |
| #FFFFFF | 11.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2a2f8e; /* rgb */ color: rgb(42, 47, 142); /* oklch */ color: oklch(36.8% 0.154 273.6);
Tailwind
colors: {
custom: {
50: '#7268b0',
500: '#2a2f8e',
950: '#000000',
},
}SCSS
$custom: #2a2f8e; $custom-light: #7268b0; $custom-dark: #000000;
JSON
{
"hex": "#2a2f8e",
"rgb": {
"r": 42,
"g": 47,
"b": 142
},
"hsl": {
"h": 237,
"s": 54.348,
"l": 36.078
},
"oklch": {
"l": 0.36757,
"c": 0.15394,
"h": 273.6
},
"luminance": 0.04478
}Semantic roles & 50–950 ramp
primary
#2A2F8E
secondary
#B6B25D
accent
#D64ADE
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80