#2A2F78#2A2F78
#2A2F78 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.123 H 275.0°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2F78 |
|---|---|
| RGB | rgb(42, 47, 120) |
| HSL | hsl(236, 48%, 32%) |
| HSV | hsv(236, 65%, 47%) |
| CMYK | cmyk(65%, 60.8%, 0%, 52.9%) |
| CIE-LAB | lab(23.27, 22.46, -42.52) |
| CIE-LCH | lch(23.27, 48.09, 297.84°) |
| OKLab | oklab(34.75% 0.0108 -0.1223) |
| OKLCH | oklch(34.75% 0.123 275) |
| XYZ | xyz(5.3604, 3.8809, 18.2323) |
| Luminance | 0.0388 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 6.13
Midnight Blue
#191970
ΔE00 6.25
Marine
#042E60
ΔE00 6.98
Blueberry
#464196
ΔE00 7.11
Sapphire (survey)
#2138AB
ΔE00 7.92
Royal
#0C1793
ΔE00 8.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2F78 #78732A
analogous
#2A5678 #2A2F78 #4C2A78
triadic
#2A2F78 #782A2F #2F782A
tetradic
#2A2F78 #782A56 #78732A #2A784C
square
#2A2F78 #782A56 #78732A #2A784C
split-complementary
#2A2F78 #784C2A #56782A
monochromatic
#0A0B1D #1A1D4B #2A2F78 #3A41A5 #585FC5
Accessibility & contrast
On white
11.82
#2A2F78 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#2A2F78 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2F78
11.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2F78 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2F78 | 1.00 | 11.82 | 1.78 | 11.82 |
| #FFFFFF | 11.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B7A
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #2a2f78; /* rgb */ color: rgb(42, 47, 120); /* oklch */ color: oklch(34.8% 0.123 275.0);
Tailwind
colors: {
custom: {
50: '#6d67a0',
500: '#2a2f78',
950: '#000000',
},
}SCSS
$custom: #2a2f78; $custom-light: #6d67a0; $custom-dark: #000000;
JSON
{
"hex": "#2a2f78",
"rgb": {
"r": 42,
"g": 47,
"b": 120
},
"hsl": {
"h": 236.154,
"s": 48.148,
"l": 31.765
},
"oklch": {
"l": 0.3475,
"c": 0.12276,
"h": 275
},
"luminance": 0.03881
}Semantic roles & 50–950 ramp
primary
#2A2F78
secondary
#AAA454
accent
#CF50D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060F
muted
#7B7A7E