#2A2F82#2A2F82
#2A2F82 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.137 H 274.4°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2F82 |
|---|---|
| RGB | rgb(42, 47, 130) |
| HSL | hsl(237, 51%, 34%) |
| HSV | hsv(237, 68%, 51%) |
| CMYK | cmyk(67.7%, 63.8%, 0%, 49%) |
| CIE-LAB | lab(24.12, 26.16, -47.47) |
| CIE-LCH | lch(24.12, 54.20, 298.86°) |
| OKLab | oklab(35.64% 0.0105 -0.1368) |
| OKLCH | oklch(35.64% 0.137 274.4) |
| XYZ | xyz(5.9993, 4.1365, 21.5970) |
| Luminance | 0.0414 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.76
Midnight Blue
#191970
ΔE00 6.24
Sapphire (survey)
#2138AB
ΔE00 6.37
Blueberry
#464196
ΔE00 6.37
Royal
#0C1793
ΔE00 7.08
Marine
#042E60
ΔE00 8.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2F82 #827D2A
analogous
#2A5B82 #2A2F82 #512A82
triadic
#2A2F82 #822A2F #2F822A
tetradic
#2A2F82 #822A5B #827D2A #2A8251
square
#2A2F82 #822A5B #827D2A #2A8251
split-complementary
#2A2F82 #82512A #5B822A
monochromatic
#0C0E25 #1B1E54 #2A2F82 #3940B0 #5C62CA
Accessibility & contrast
On white
11.49
#2A2F82 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#2A2F82 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2F82
11.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2F82 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2F82 | 1.00 | 11.49 | 1.83 | 11.49 |
| #FFFFFF | 11.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D85
Deuteranopia (green-blind)
#003580
Tritanopia (blue-blind)
#004454
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2a2f82; /* rgb */ color: rgb(42, 47, 130); /* oklch */ color: oklch(35.6% 0.137 274.4);
Tailwind
colors: {
custom: {
50: '#6f67a7',
500: '#2a2f82',
950: '#000000',
},
}SCSS
$custom: #2a2f82; $custom-light: #6f67a7; $custom-dark: #000000;
JSON
{
"hex": "#2a2f82",
"rgb": {
"r": 42,
"g": 47,
"b": 130
},
"hsl": {
"h": 236.591,
"s": 51.163,
"l": 33.725
},
"oklch": {
"l": 0.35638,
"c": 0.13723,
"h": 274.4
},
"luminance": 0.04137
}Semantic roles & 50–950 ramp
primary
#2A2F82
secondary
#B0AB58
accent
#D34DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F