#2A3A9E#2A3A9E
#2A3A9E is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.3% C 0.162 H 270.3°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).
Color values
| HEX | #2A3A9E |
|---|---|
| RGB | rgb(42, 58, 158) |
| HSL | hsl(232, 58%, 39%) |
| HSV | hsv(232, 73%, 62%) |
| CMYK | cmyk(73.4%, 63.3%, 0%, 38%) |
| CIE-LAB | lab(29.38, 29.20, -56.16) |
| CIE-LCH | lch(29.38, 63.30, 297.47°) |
| OKLab | oklab(40.27% 0.0008 -0.1622) |
| OKLCH | oklch(40.27% 0.162 270.3) |
| XYZ | xyz(8.6373, 5.9861, 33.0414) |
| Luminance | 0.0599 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.02
Blueberry
#464196
ΔE00 4.54
Cobalt
#0047AB
ΔE00 5.75
Blue Blue
#2242C7
ΔE00 5.85
Darkslateblue
#483D8B
ΔE00 5.91
Ocean Blue
#4F42B5
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A3A9E #9E8E2A
analogous
#2A749E #2A3A9E #542A9E
triadic
#2A3A9E #9E2A3A #3A9E2A
tetradic
#2A3A9E #9E2A74 #9E8E2A #2A9E54
square
#2A3A9E #9E2A74 #9E8E2A #2A9E54
split-complementary
#2A3A9E #9E542A #749E2A
monochromatic
#10173D #1D286E #2A3A9E #3A4ECB #6B7AD8
Accessibility & contrast
On white
9.56
#2A3A9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#2A3A9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A3A9E
9.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A3A9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A3A9E | 1.00 | 9.56 | 2.20 | 9.56 |
| #FFFFFF | 9.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#005466
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #2a3a9e; /* rgb */ color: rgb(42, 58, 158); /* oklch */ color: oklch(40.3% 0.162 270.3);
Tailwind
colors: {
custom: {
50: '#7570bc',
500: '#2a3a9e',
950: '#000000',
},
}SCSS
$custom: #2a3a9e; $custom-light: #7570bc; $custom-dark: #000000;
JSON
{
"hex": "#2a3a9e",
"rgb": {
"r": 42,
"g": 58,
"b": 158
},
"hsl": {
"h": 231.724,
"s": 58,
"l": 39.216
},
"oklch": {
"l": 0.40269,
"c": 0.16222,
"h": 270.3
},
"luminance": 0.05987
}Semantic roles & 50–950 ramp
primary
#2A3A9E
secondary
#BEB266
accent
#CC47E1
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090712
muted
#7B7A81