#2A2F7E#2A2F7E
#2A2F7E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.132 H 274.7°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2F7E |
|---|---|
| RGB | rgb(42, 47, 126) |
| HSL | hsl(236, 50%, 33%) |
| HSV | hsv(236, 67%, 49%) |
| CMYK | cmyk(66.7%, 62.7%, 0%, 50.6%) |
| CIE-LAB | lab(23.77, 24.68, -45.51) |
| CIE-LCH | lch(23.77, 51.77, 298.47°) |
| OKLab | oklab(35.28% 0.0107 -0.1311) |
| OKLCH | oklch(35.28% 0.132 274.7) |
| XYZ | xyz(5.7360, 4.0311, 20.2104) |
| Luminance | 0.0403 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.85
Midnight Blue
#191970
ΔE00 6.17
Blueberry
#464196
ΔE00 6.62
Sapphire (survey)
#2138AB
ΔE00 6.97
Royal
#0C1793
ΔE00 7.51
Marine
#042E60
ΔE00 7.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2F7E #7E792A
analogous
#2A597E #2A2F7E #4F2A7E
triadic
#2A2F7E #7E2A2F #2F7E2A
tetradic
#2A2F7E #7E2A59 #7E792A #2A7E4F
square
#2A2F7E #7E2A59 #7E792A #2A7E4F
split-complementary
#2A2F7E #7E4F2A #597E2A
monochromatic
#0B0D22 #1B1E50 #2A2F7E #3940AC #5A61C8
Accessibility & contrast
On white
11.63
#2A2F7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#2A2F7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2F7E
11.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2F7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2F7E | 1.00 | 11.63 | 1.81 | 11.63 |
| #FFFFFF | 11.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2a2f7e; /* rgb */ color: rgb(42, 47, 126); /* oklch */ color: oklch(35.3% 0.132 274.7);
Tailwind
colors: {
custom: {
50: '#6e67a4',
500: '#2a2f7e',
950: '#000000',
},
}SCSS
$custom: #2a2f7e; $custom-light: #6e67a4; $custom-dark: #000000;
JSON
{
"hex": "#2a2f7e",
"rgb": {
"r": 42,
"g": 47,
"b": 126
},
"hsl": {
"h": 236.429,
"s": 50,
"l": 32.941
},
"oklch": {
"l": 0.35278,
"c": 0.1315,
"h": 274.7
},
"luminance": 0.04032
}Semantic roles & 50–950 ramp
primary
#2A2F7E
secondary
#AEA856
accent
#D14EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F