#2A387C#2A387C
#2A387C is a dark, moderate blue. Relative luminance 0.048; OKLCH L 37.0% C 0.116 H 270.9°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).
Color values
| HEX | #2A387C |
|---|---|
| RGB | rgb(42, 56, 124) |
| HSL | hsl(230, 49%, 33%) |
| HSV | hsv(230, 66%, 49%) |
| CMYK | cmyk(66.1%, 54.8%, 0%, 51.4%) |
| CIE-LAB | lab(26.08, 17.75, -40.50) |
| CIE-LCH | lch(26.08, 44.22, 293.67°) |
| OKLab | oklab(36.95% 0.0019 -0.1162) |
| OKLCH | oklch(36.95% 0.116 270.9) |
| XYZ | xyz(6.0059, 4.7753, 19.6701) |
| Luminance | 0.0478 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.87
Blueberry
#464196
ΔE00 6.14
Marine
#042E60
ΔE00 6.35
Darkish Blue
#014182
ΔE00 6.47
Marine Blue
#01386A
ΔE00 6.52
Cobalt (survey)
#1E488F
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A387C #7C6E2A
analogous
#2A617C #2A387C #452A7C
triadic
#2A387C #7C2A38 #387C2A
tetradic
#2A387C #7C2A61 #7C6E2A #2A7C45
square
#2A387C #7C2A61 #7C6E2A #2A7C45
split-complementary
#2A387C #7C452A #617C2A
monochromatic
#0B0F21 #1B234E #2A387C #394DAA #596CC7
Accessibility & contrast
On white
10.74
#2A387C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#2A387C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A387C
10.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A387C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A387C | 1.00 | 10.74 | 1.96 | 10.74 |
| #FFFFFF | 10.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0D427E
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2a387c; /* rgb */ color: rgb(42, 56, 124); /* oklch */ color: oklch(37.0% 0.116 270.9);
Tailwind
colors: {
custom: {
50: '#6d6ea2',
500: '#2a387c',
950: '#000000',
},
}SCSS
$custom: #2a387c; $custom-light: #6d6ea2; $custom-dark: #000000;
JSON
{
"hex": "#2a387c",
"rgb": {
"r": 42,
"g": 56,
"b": 124
},
"hsl": {
"h": 229.756,
"s": 49.398,
"l": 32.549
},
"oklch": {
"l": 0.36951,
"c": 0.11623,
"h": 270.9
},
"luminance": 0.04776
}Semantic roles & 50–950 ramp
primary
#2A387C
secondary
#AD9E55
accent
#C14FD9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08070F
muted
#7A7A7F