#2A388C#2A388C
#2A388C is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.3% C 0.140 H 271.0°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).
Color values
| HEX | #2A388C |
|---|---|
| RGB | rgb(42, 56, 140) |
| HSL | hsl(231, 54%, 36%) |
| HSV | hsv(231, 70%, 55%) |
| CMYK | cmyk(70%, 60%, 0%, 45.1%) |
| CIE-LAB | lab(27.33, 23.80, -48.46) |
| CIE-LCH | lch(27.33, 53.99, 296.16°) |
| OKLab | oklab(38.28% 0.0026 -0.1396) |
| OKLCH | oklch(38.28% 0.14 271) |
| XYZ | xyz(7.1010, 5.2134, 25.4379) |
| Luminance | 0.0521 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.61
Blueberry
#464196
ΔE00 4.79
Darkslateblue
#483D8B
ΔE00 5.23
Cobalt (survey)
#1E488F
ΔE00 6.53
Darkish Blue
#014182
ΔE00 7.00
Cobalt
#0047AB
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A388C #8C7E2A
analogous
#2A698C #2A388C #4D2A8C
triadic
#2A388C #8C2A38 #388C2A
tetradic
#2A388C #8C2A69 #8C7E2A #2A8C4D
square
#2A388C #8C2A69 #8C7E2A #2A8C4D
split-complementary
#2A388C #8C4D2A #698C2A
monochromatic
#0E122E #1C255D #2A388C #384BBB #6171D0
Accessibility & contrast
On white
10.28
#2A388C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#2A388C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A388C
10.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A388C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A388C | 1.00 | 10.28 | 2.04 | 10.28 |
| #FFFFFF | 10.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #2a388c; /* rgb */ color: rgb(42, 56, 140); /* oklch */ color: oklch(38.3% 0.140 271.0);
Tailwind
colors: {
custom: {
50: '#716eae',
500: '#2a388c',
950: '#000000',
},
}SCSS
$custom: #2a388c; $custom-light: #716eae; $custom-dark: #000000;
JSON
{
"hex": "#2a388c",
"rgb": {
"r": 42,
"g": 56,
"b": 140
},
"hsl": {
"h": 231.429,
"s": 53.846,
"l": 35.686
},
"oklch": {
"l": 0.38282,
"c": 0.13967,
"h": 271
},
"luminance": 0.05214
}Semantic roles & 50–950 ramp
primary
#2A388C
secondary
#B5A95C
accent
#C84BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F