#2A2F7D#2A2F7D
#2A2F7D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.130 H 274.7°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2F7D |
|---|---|
| RGB | rgb(42, 47, 125) |
| HSL | hsl(236, 50%, 33%) |
| HSV | hsv(236, 66%, 49%) |
| CMYK | cmyk(66.4%, 62.4%, 0%, 51%) |
| CIE-LAB | lab(23.69, 24.31, -45.02) |
| CIE-LCH | lch(23.69, 51.16, 298.37°) |
| OKLab | oklab(35.19% 0.0107 -0.1296) |
| OKLCH | oklch(35.19% 0.13 274.7) |
| XYZ | xyz(5.6718, 4.0055, 19.8723) |
| Luminance | 0.0401 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.88
Midnight Blue
#191970
ΔE00 6.17
Blueberry
#464196
ΔE00 6.69
Sapphire (survey)
#2138AB
ΔE00 7.12
Marine
#042E60
ΔE00 7.47
Royal
#0C1793
ΔE00 7.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2F7D #7D782A
analogous
#2A587D #2A2F7D #4F2A7D
triadic
#2A2F7D #7D2A2F #2F7D2A
tetradic
#2A2F7D #7D2A58 #7D782A #2A7D4F
square
#2A2F7D #7D2A58 #7D782A #2A7D4F
split-complementary
#2A2F7D #7D4F2A #587D2A
monochromatic
#0B0D21 #1B1E4F #2A2F7D #3940AB #5A60C8
Accessibility & contrast
On white
11.66
#2A2F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#2A2F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2F7D
11.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2F7D | 1.00 | 11.66 | 1.80 | 11.66 |
| #FFFFFF | 11.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #2a2f7d; /* rgb */ color: rgb(42, 47, 125); /* oklch */ color: oklch(35.2% 0.130 274.7);
Tailwind
colors: {
custom: {
50: '#6e67a3',
500: '#2a2f7d',
950: '#000000',
},
}SCSS
$custom: #2a2f7d; $custom-light: #6e67a3; $custom-dark: #000000;
JSON
{
"hex": "#2a2f7d",
"rgb": {
"r": 42,
"g": 47,
"b": 125
},
"hsl": {
"h": 236.386,
"s": 49.701,
"l": 32.745
},
"oklch": {
"l": 0.35189,
"c": 0.13005,
"h": 274.7
},
"luminance": 0.04006
}Semantic roles & 50–950 ramp
primary
#2A2F7D
secondary
#ADA856
accent
#D14FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F