#2A308E#2A308E
#2A308E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.153 H 273.4°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).
Color values
| HEX | #2A308E |
|---|---|
| RGB | rgb(42, 48, 142) |
| HSL | hsl(236, 54%, 36%) |
| HSV | hsv(236, 70%, 56%) |
| CMYK | cmyk(70.4%, 66.2%, 0%, 44.3%) |
| CIE-LAB | lab(25.44, 29.89, -52.80) |
| CIE-LCH | lch(25.44, 60.67, 299.52°) |
| OKLab | oklab(36.94% 0.009 -0.1524) |
| OKLCH | oklch(36.94% 0.153 273.4) |
| XYZ | xyz(6.8927, 4.5585, 26.1026) |
| Luminance | 0.0456 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.62
Darkslateblue
#483D8B
ΔE00 5.74
Blueberry
#464196
ΔE00 5.78
Royal
#0C1793
ΔE00 6.44
Midnight Blue
#191970
ΔE00 7.12
Indigo Blue
#3A18B1
ΔE00 7.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A308E #8E882A
analogous
#2A628E #2A308E #562A8E
triadic
#2A308E #8E2A30 #308E2A
tetradic
#2A308E #8E2A62 #8E882A #2A8E56
square
#2A308E #8E2A62 #8E882A #2A8E56
split-complementary
#2A308E #8E562A #628E2A
monochromatic
#0E1030 #1C205F #2A308E #3840BD #6269D1
Accessibility & contrast
On white
10.98
#2A308E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#2A308E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A308E
10.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A308E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A308E | 1.00 | 10.98 | 1.91 | 10.98 |
| #FFFFFF | 10.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2a308e; /* rgb */ color: rgb(42, 48, 142); /* oklch */ color: oklch(36.9% 0.153 273.4);
Tailwind
colors: {
custom: {
50: '#7268b0',
500: '#2a308e',
950: '#000000',
},
}SCSS
$custom: #2a308e; $custom-light: #7268b0; $custom-dark: #000000;
JSON
{
"hex": "#2a308e",
"rgb": {
"r": 42,
"g": 48,
"b": 142
},
"hsl": {
"h": 236.4,
"s": 54.348,
"l": 36.078
},
"oklch": {
"l": 0.36937,
"c": 0.1527,
"h": 273.4
},
"luminance": 0.04559
}Semantic roles & 50–950 ramp
primary
#2A308E
secondary
#B6B15D
accent
#D54ADE
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80