#2A337F#2A337F
#2A337F is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.2% C 0.128 H 273.1°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).
Color values
| HEX | #2A337F |
|---|---|
| RGB | rgb(42, 51, 127) |
| HSL | hsl(234, 50%, 33%) |
| HSV | hsv(234, 67%, 50%) |
| CMYK | cmyk(66.9%, 59.8%, 0%, 50.2%) |
| CIE-LAB | lab(24.93, 22.33, -44.27) |
| CIE-LCH | lch(24.93, 49.58, 296.77°) |
| OKLab | oklab(36.16% 0.0069 -0.1274) |
| OKLCH | oklch(36.16% 0.128 273.1) |
| XYZ | xyz(5.9682, 4.3917, 20.6077) |
| Luminance | 0.0439 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.52
Blueberry
#464196
ΔE00 6.05
Sapphire (survey)
#2138AB
ΔE00 6.64
Marine
#042E60
ΔE00 7.09
Midnight Blue
#191970
ΔE00 7.41
Marine Blue
#01386A
ΔE00 7.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A337F #7F762A
analogous
#2A5D7F #2A337F #4B2A7F
triadic
#2A337F #7F2A33 #337F2A
tetradic
#2A337F #7F2A5D #7F762A #2A7F4B
square
#2A337F #7F2A5D #7F762A #2A7F4B
split-complementary
#2A337F #7F4B2A #5D7F2A
monochromatic
#0C0E23 #1B2151 #2A337F #3945AD #5B66C9
Accessibility & contrast
On white
11.18
#2A337F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#2A337F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A337F
11.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A337F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A337F | 1.00 | 11.18 | 1.88 | 11.18 |
| #FFFFFF | 11.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #2a337f; /* rgb */ color: rgb(42, 51, 127); /* oklch */ color: oklch(36.2% 0.128 273.1);
Tailwind
colors: {
custom: {
50: '#6e6aa5',
500: '#2a337f',
950: '#000000',
},
}SCSS
$custom: #2a337f; $custom-light: #6e6aa5; $custom-dark: #000000;
JSON
{
"hex": "#2a337f",
"rgb": {
"r": 42,
"g": 51,
"b": 127
},
"hsl": {
"h": 233.647,
"s": 50.296,
"l": 33.137
},
"oklch": {
"l": 0.36158,
"c": 0.12756,
"h": 273.1
},
"luminance": 0.04392
}Semantic roles & 50–950 ramp
primary
#2A337F
secondary
#AEA557
accent
#CB4EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F