#2A2F7B#2A2F7B
#2A2F7B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.0% C 0.127 H 274.9°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2F7B |
|---|---|
| RGB | rgb(42, 47, 123) |
| HSL | hsl(236, 49%, 32%) |
| HSV | hsv(236, 66%, 48%) |
| CMYK | cmyk(65.9%, 61.8%, 0%, 51.8%) |
| CIE-LAB | lab(23.52, 23.57, -44.02) |
| CIE-LCH | lch(23.52, 49.94, 298.17°) |
| OKLab | oklab(35.01% 0.0108 -0.1267) |
| OKLCH | oklch(35.01% 0.127 274.9) |
| XYZ | xyz(5.5453, 3.9549, 19.2062) |
| Luminance | 0.0396 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.97
Midnight Blue
#191970
ΔE00 6.18
Blueberry
#464196
ΔE00 6.85
Marine
#042E60
ΔE00 7.26
Sapphire (survey)
#2138AB
ΔE00 7.44
Royal
#0C1793
ΔE00 7.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2F7B #7B762A
analogous
#2A587B #2A2F7B #4D2A7B
triadic
#2A2F7B #7B2A2F #2F7B2A
tetradic
#2A2F7B #7B2A58 #7B762A #2A7B4D
square
#2A2F7B #7B2A58 #7B762A #2A7B4D
split-complementary
#2A2F7B #7B4D2A #587B2A
monochromatic
#0B0C20 #1A1E4D #2A2F7B #3A40A9 #5960C6
Accessibility & contrast
On white
11.73
#2A2F7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#2A2F7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2F7B
11.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2F7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2F7B | 1.00 | 11.73 | 1.79 | 11.73 |
| #FFFFFF | 11.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #2a2f7b; /* rgb */ color: rgb(42, 47, 123); /* oklch */ color: oklch(35.0% 0.127 274.9);
Tailwind
colors: {
custom: {
50: '#6e67a2',
500: '#2a2f7b',
950: '#000000',
},
}SCSS
$custom: #2a2f7b; $custom-light: #6e67a2; $custom-dark: #000000;
JSON
{
"hex": "#2a2f7b",
"rgb": {
"r": 42,
"g": 47,
"b": 123
},
"hsl": {
"h": 236.296,
"s": 49.091,
"l": 32.353
},
"oklch": {
"l": 0.35012,
"c": 0.12715,
"h": 274.9
},
"luminance": 0.03955
}Semantic roles & 50–950 ramp
primary
#2A2F7B
secondary
#ACA755
accent
#D04FD9
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F