#2A337E#2A337E
#2A337E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.1% C 0.126 H 273.1°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).
Color values
| HEX | #2A337E |
|---|---|
| RGB | rgb(42, 51, 126) |
| HSL | hsl(234, 50%, 33%) |
| HSV | hsv(234, 67%, 49%) |
| CMYK | cmyk(66.7%, 59.5%, 0%, 50.6%) |
| CIE-LAB | lab(24.85, 21.95, -43.77) |
| CIE-LCH | lch(24.85, 48.97, 296.64°) |
| OKLab | oklab(36.07% 0.0069 -0.1259) |
| OKLCH | oklch(36.07% 0.126 273.1) |
| XYZ | xyz(5.9033, 4.3657, 20.2662) |
| Luminance | 0.0437 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.57
Blueberry
#464196
ΔE00 6.13
Sapphire (survey)
#2138AB
ΔE00 6.81
Marine
#042E60
ΔE00 6.98
Midnight Blue
#191970
ΔE00 7.42
Marine Blue
#01386A
ΔE00 7.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A337E #7E752A
analogous
#2A5D7E #2A337E #4B2A7E
triadic
#2A337E #7E2A33 #337E2A
tetradic
#2A337E #7E2A5D #7E752A #2A7E4B
square
#2A337E #7E2A5D #7E752A #2A7E4B
split-complementary
#2A337E #7E4B2A #5D7E2A
monochromatic
#0B0E22 #1B2050 #2A337E #3946AC #5A66C8
Accessibility & contrast
On white
11.21
#2A337E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#2A337E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A337E
11.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A337E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A337E | 1.00 | 11.21 | 1.87 | 11.21 |
| #FFFFFF | 11.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #2a337e; /* rgb */ color: rgb(42, 51, 126); /* oklch */ color: oklch(36.1% 0.126 273.1);
Tailwind
colors: {
custom: {
50: '#6e6aa4',
500: '#2a337e',
950: '#000000',
},
}SCSS
$custom: #2a337e; $custom-light: #6e6aa4; $custom-dark: #000000;
JSON
{
"hex": "#2a337e",
"rgb": {
"r": 42,
"g": 51,
"b": 126
},
"hsl": {
"h": 233.571,
"s": 50,
"l": 32.941
},
"oklch": {
"l": 0.36072,
"c": 0.12609,
"h": 273.1
},
"luminance": 0.04366
}Semantic roles & 50–950 ramp
primary
#2A337E
secondary
#AEA456
accent
#CB4EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F