#2A2F8D#2A2F8D
#2A2F8D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.7% C 0.153 H 273.7°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2F8D |
|---|---|
| RGB | rgb(42, 47, 141) |
| HSL | hsl(237, 54%, 36%) |
| HSV | hsv(237, 70%, 55%) |
| CMYK | cmyk(70.2%, 66.7%, 0%, 44.7%) |
| CIE-LAB | lab(25.10, 30.19, -52.73) |
| CIE-LCH | lch(25.10, 60.76, 299.79°) |
| OKLab | oklab(36.66% 0.0098 -0.1522) |
| OKLCH | oklch(36.66% 0.153 273.7) |
| XYZ | xyz(6.7775, 4.4477, 25.6955) |
| Luminance | 0.0445 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.87
Darkslateblue
#483D8B
ΔE00 5.84
Blueberry
#464196
ΔE00 5.99
Royal
#0C1793
ΔE00 6.21
Midnight Blue
#191970
ΔE00 6.82
Indigo Blue
#3A18B1
ΔE00 7.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2F8D #8D882A
analogous
#2A608D #2A2F8D #562A8D
triadic
#2A2F8D #8D2A2F #2F8D2A
tetradic
#2A2F8D #8D2A60 #8D882A #2A8D56
square
#2A2F8D #8D2A60 #8D882A #2A8D56
split-complementary
#2A2F8D #8D562A #608D2A
monochromatic
#0E102F #1C1F5E #2A2F8D #383FBC #6167D0
Accessibility & contrast
On white
11.11
#2A2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#2A2F8D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2F8D
11.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2F8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2F8D | 1.00 | 11.11 | 1.89 | 11.11 |
| #FFFFFF | 11.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2a2f8d; /* rgb */ color: rgb(42, 47, 141); /* oklch */ color: oklch(36.7% 0.153 273.7);
Tailwind
colors: {
custom: {
50: '#7268af',
500: '#2a2f8d',
950: '#000000',
},
}SCSS
$custom: #2a2f8d; $custom-light: #7268af; $custom-dark: #000000;
JSON
{
"hex": "#2a2f8d",
"rgb": {
"r": 42,
"g": 47,
"b": 141
},
"hsl": {
"h": 236.97,
"s": 54.098,
"l": 35.882
},
"oklch": {
"l": 0.36661,
"c": 0.15257,
"h": 273.7
},
"luminance": 0.04448
}Semantic roles & 50–950 ramp
primary
#2A2F8D
secondary
#B6B15D
accent
#D64ADD
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F