#2A2D78#2A2D78
#2A2D78 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.126 H 275.8°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2D78 |
|---|---|
| RGB | rgb(42, 45, 120) |
| HSL | hsl(238, 48%, 32%) |
| HSV | hsv(238, 65%, 47%) |
| CMYK | cmyk(65%, 62.5%, 0%, 52.9%) |
| CIE-LAB | lab(22.74, 23.83, -43.39) |
| CIE-LCH | lch(22.74, 49.50, 298.77°) |
| OKLab | oklab(34.36% 0.0127 -0.1248) |
| OKLCH | oklch(34.36% 0.126 275.8) |
| XYZ | xyz(5.2823, 3.7247, 18.2062) |
| Luminance | 0.0372 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.62
Darkslateblue
#483D8B
ΔE00 6.33
Marine
#042E60
ΔE00 7.36
Blueberry
#464196
ΔE00 7.38
Royal
#0C1793
ΔE00 7.74
Sapphire (survey)
#2138AB
ΔE00 8.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2D78 #78752A
analogous
#2A5478 #2A2D78 #4E2A78
triadic
#2A2D78 #782A2D #2D782A
tetradic
#2A2D78 #782A54 #78752A #2A784E
square
#2A2D78 #782A54 #78752A #2A784E
split-complementary
#2A2D78 #784E2A #54782A
monochromatic
#0A0B1D #1A1C4B #2A2D78 #3A3EA5 #585CC5
Accessibility & contrast
On white
12.03
#2A2D78 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#2A2D78 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2D78
12.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2D78 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2D78 | 1.00 | 12.03 | 1.75 | 12.03 |
| #FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2a2d78; /* rgb */ color: rgb(42, 45, 120); /* oklch */ color: oklch(34.4% 0.126 275.8);
Tailwind
colors: {
custom: {
50: '#6d66a0',
500: '#2a2d78',
950: '#000000',
},
}SCSS
$custom: #2a2d78; $custom-light: #6d66a0; $custom-dark: #000000;
JSON
{
"hex": "#2a2d78",
"rgb": {
"r": 42,
"g": 45,
"b": 120
},
"hsl": {
"h": 237.692,
"s": 48.148,
"l": 31.765
},
"oklch": {
"l": 0.34355,
"c": 0.1255,
"h": 275.8
},
"luminance": 0.03725
}Semantic roles & 50–950 ramp
primary
#2A2D78
secondary
#AAA654
accent
#D350D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08050F
muted
#7A7A7E