#2A2F80#2A2F80
#2A2F80 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.134 H 274.5°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2F80 |
|---|---|
| RGB | rgb(42, 47, 128) |
| HSL | hsl(237, 51%, 33%) |
| HSV | hsv(237, 67%, 50%) |
| CMYK | cmyk(67.2%, 63.3%, 0%, 49.8%) |
| CIE-LAB | lab(23.94, 25.42, -46.49) |
| CIE-LCH | lch(23.94, 52.99, 298.67°) |
| OKLab | oklab(35.46% 0.0106 -0.134) |
| OKLCH | oklch(35.46% 0.134 274.5) |
| XYZ | xyz(5.8664, 4.0833, 20.8969) |
| Luminance | 0.0408 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.79
Midnight Blue
#191970
ΔE00 6.20
Blueberry
#464196
ΔE00 6.49
Sapphire (survey)
#2138AB
ΔE00 6.67
Royal
#0C1793
ΔE00 7.29
Marine
#042E60
ΔE00 7.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2F80 #807B2A
analogous
#2A5A80 #2A2F80 #502A80
triadic
#2A2F80 #802A2F #2F802A
tetradic
#2A2F80 #802A5A #807B2A #2A8050
square
#2A2F80 #802A5A #807B2A #2A8050
split-complementary
#2A2F80 #80502A #5A802A
monochromatic
#0C0D24 #1B1E52 #2A2F80 #3940AE #5B62C9
Accessibility & contrast
On white
11.56
#2A2F80 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#2A2F80 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2F80
11.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2F80 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2F80 | 1.00 | 11.56 | 1.82 | 11.56 |
| #FFFFFF | 11.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D83
Deuteranopia (green-blind)
#00357E
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2a2f80; /* rgb */ color: rgb(42, 47, 128); /* oklch */ color: oklch(35.5% 0.134 274.5);
Tailwind
colors: {
custom: {
50: '#6f67a6',
500: '#2a2f80',
950: '#000000',
},
}SCSS
$custom: #2a2f80; $custom-light: #6f67a6; $custom-dark: #000000;
JSON
{
"hex": "#2a2f80",
"rgb": {
"r": 42,
"g": 47,
"b": 128
},
"hsl": {
"h": 236.512,
"s": 50.588,
"l": 33.333
},
"oklch": {
"l": 0.35457,
"c": 0.13437,
"h": 274.5
},
"luminance": 0.04084
}Semantic roles & 50–950 ramp
primary
#2A2F80
secondary
#AFAA57
accent
#D24EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F