#2A2B78#2A2B78
#2A2B78 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.128 H 276.6°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2B78 |
|---|---|
| RGB | rgb(42, 43, 120) |
| HSL | hsl(239, 48%, 32%) |
| HSV | hsv(239, 65%, 47%) |
| CMYK | cmyk(65%, 64.2%, 0%, 52.9%) |
| CIE-LAB | lab(22.22, 25.18, -44.24) |
| CIE-LCH | lch(22.22, 50.91, 299.65°) |
| OKLab | oklab(33.97% 0.0147 -0.1274) |
| OKLCH | oklch(33.97% 0.128 276.6) |
| XYZ | xyz(5.2078, 3.5756, 18.1814) |
| Luminance | 0.0358 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.02
Darkslateblue
#483D8B
ΔE00 6.59
Royal
#0C1793
ΔE00 7.23
Blueberry
#464196
ΔE00 7.70
Marine
#042E60
ΔE00 7.77
Sapphire (survey)
#2138AB
ΔE00 8.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2B78 #78772A
analogous
#2A5278 #2A2B78 #502A78
triadic
#2A2B78 #782A2B #2B782A
tetradic
#2A2B78 #782A52 #78772A #2A7850
square
#2A2B78 #782A52 #78772A #2A7850
split-complementary
#2A2B78 #78502A #52782A
monochromatic
#0A0B1D #1A1B4B #2A2B78 #3A3BA5 #5859C5
Accessibility & contrast
On white
12.24
#2A2B78 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#2A2B78 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2B78
12.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2B78 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2B78 | 1.00 | 12.24 | 1.72 | 12.24 |
| #FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00397A
Deuteranopia (green-blind)
#003276
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2a2b78; /* rgb */ color: rgb(42, 43, 120); /* oklch */ color: oklch(34.0% 0.128 276.6);
Tailwind
colors: {
custom: {
50: '#6d64a0',
500: '#2a2b78',
950: '#000000',
},
}SCSS
$custom: #2a2b78; $custom-light: #6d64a0; $custom-dark: #000000;
JSON
{
"hex": "#2a2b78",
"rgb": {
"r": 42,
"g": 43,
"b": 120
},
"hsl": {
"h": 239.231,
"s": 48.148,
"l": 31.765
},
"oklch": {
"l": 0.33969,
"c": 0.12821,
"h": 276.6
},
"luminance": 0.03576
}Semantic roles & 50–950 ramp
primary
#2A2B78
secondary
#AAA954
accent
#D650D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08050F
muted
#7A7A7E