#2A2F79#2A2F79
#2A2F79 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.124 H 275.0°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2F79 |
|---|---|
| RGB | rgb(42, 47, 121) |
| HSL | hsl(236, 48%, 32%) |
| HSV | hsv(236, 65%, 47%) |
| CMYK | cmyk(65.3%, 61.2%, 0%, 52.5%) |
| CIE-LAB | lab(23.36, 22.83, -43.02) |
| CIE-LCH | lch(23.36, 48.71, 297.95°) |
| OKLab | oklab(34.84% 0.0108 -0.1238) |
| OKLCH | oklch(34.84% 0.124 275) |
| XYZ | xyz(5.4214, 3.9053, 18.5536) |
| Luminance | 0.0391 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 6.07
Midnight Blue
#191970
ΔE00 6.22
Blueberry
#464196
ΔE00 7.02
Marine
#042E60
ΔE00 7.07
Sapphire (survey)
#2138AB
ΔE00 7.76
Royal
#0C1793
ΔE00 8.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2F79 #79742A
analogous
#2A5679 #2A2F79 #4D2A79
triadic
#2A2F79 #792A2F #2F792A
tetradic
#2A2F79 #792A56 #79742A #2A794D
square
#2A2F79 #792A56 #79742A #2A794D
split-complementary
#2A2F79 #794D2A #56792A
monochromatic
#0A0C1E #1A1D4C #2A2F79 #3A41A6 #585FC5
Accessibility & contrast
On white
11.79
#2A2F79 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#2A2F79 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2F79
11.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2F79 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2F79 | 1.00 | 11.79 | 1.78 | 11.79 |
| #FFFFFF | 11.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B7B
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #2a2f79; /* rgb */ color: rgb(42, 47, 121); /* oklch */ color: oklch(34.8% 0.124 275.0);
Tailwind
colors: {
custom: {
50: '#6d67a0',
500: '#2a2f79',
950: '#000000',
},
}SCSS
$custom: #2a2f79; $custom-light: #6d67a0; $custom-dark: #000000;
JSON
{
"hex": "#2a2f79",
"rgb": {
"r": 42,
"g": 47,
"b": 121
},
"hsl": {
"h": 236.203,
"s": 48.466,
"l": 31.961
},
"oklch": {
"l": 0.34837,
"c": 0.12423,
"h": 275
},
"luminance": 0.03906
}Semantic roles & 50–950 ramp
primary
#2A2F79
secondary
#ABA554
accent
#CF50D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060F
muted
#7B7A7E