#2A337C#2A337C
#2A337C is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.9% C 0.123 H 273.2°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).
Color values
| HEX | #2A337C |
|---|---|
| RGB | rgb(42, 51, 124) |
| HSL | hsl(233, 49%, 33%) |
| HSV | hsv(233, 66%, 49%) |
| CMYK | cmyk(66.1%, 58.9%, 0%, 51.4%) |
| CIE-LAB | lab(24.69, 21.20, -42.77) |
| CIE-LCH | lch(24.69, 47.73, 296.37°) |
| OKLab | oklab(35.9% 0.0069 -0.1229) |
| OKLCH | oklch(35.9% 0.123 273.2) |
| XYZ | xyz(5.7756, 4.3146, 19.5933) |
| Luminance | 0.0432 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.68
Blueberry
#464196
ΔE00 6.32
Marine
#042E60
ΔE00 6.76
Sapphire (survey)
#2138AB
ΔE00 7.14
Midnight Blue
#191970
ΔE00 7.45
Marine Blue
#01386A
ΔE00 7.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A337C #7C732A
analogous
#2A5C7C #2A337C #4A2A7C
triadic
#2A337C #7C2A33 #337C2A
tetradic
#2A337C #7C2A5C #7C732A #2A7C4A
square
#2A337C #7C2A5C #7C732A #2A7C4A
split-complementary
#2A337C #7C4A2A #5C7C2A
monochromatic
#0B0D21 #1B204E #2A337C #3946AA #5965C7
Accessibility & contrast
On white
11.27
#2A337C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#2A337C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A337C
11.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A337C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A337C | 1.00 | 11.27 | 1.86 | 11.27 |
| #FFFFFF | 11.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #2a337c; /* rgb */ color: rgb(42, 51, 124); /* oklch */ color: oklch(35.9% 0.123 273.2);
Tailwind
colors: {
custom: {
50: '#6d6aa2',
500: '#2a337c',
950: '#000000',
},
}SCSS
$custom: #2a337c; $custom-light: #6d6aa2; $custom-dark: #000000;
JSON
{
"hex": "#2a337c",
"rgb": {
"r": 42,
"g": 51,
"b": 124
},
"hsl": {
"h": 233.415,
"s": 49.398,
"l": 32.549
},
"oklch": {
"l": 0.35902,
"c": 0.12314,
"h": 273.2
},
"luminance": 0.04315
}Semantic roles & 50–950 ramp
primary
#2A337C
secondary
#ADA355
accent
#CA4FD9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F