#1D398C#1D398C
#1D398C is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.8% C 0.142 H 265.7°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).
Color values
| HEX | #1D398C |
|---|---|
| RGB | rgb(29, 57, 140) |
| HSL | hsl(225, 66%, 33%) |
| HSV | hsv(225, 79%, 55%) |
| CMYK | cmyk(79.3%, 59.3%, 0%, 45.1%) |
| CIE-LAB | lab(26.96, 21.38, -49.10) |
| CIE-LCH | lch(26.96, 53.55, 293.53°) |
| OKLab | oklab(37.83% -0.0107 -0.1418) |
| OKLCH | oklch(37.83% 0.142 265.7) |
| XYZ | xyz(6.7018, 5.0802, 25.4332) |
| Luminance | 0.0508 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.93
Cobalt (survey)
#1E488F
ΔE00 5.30
Darkish Blue
#014182
ΔE00 5.32
Cobalt
#0047AB
ΔE00 5.99
Blueberry
#464196
ΔE00 6.19
Twilight Blue
#0A437A
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D398C #8C701D
analogous
#1D708C #1D398C #391D8C
triadic
#1D398C #8C1D39 #398C1D
tetradic
#1D398C #8C1D70 #8C701D #1D8C39
square
#1D398C #8C1D70 #8C701D #1D8C39
split-complementary
#1D398C #8C391D #708C1D
monochromatic
#081027 #122459 #1D398C #284EBF #4A6ED9
Accessibility & contrast
On white
10.42
#1D398C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#1D398C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D398C
10.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D398C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D398C | 1.00 | 10.42 | 2.02 | 10.42 |
| #FFFFFF | 10.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #1d398c; /* rgb */ color: rgb(29, 57, 140); /* oklch */ color: oklch(37.8% 0.142 265.7);
Tailwind
colors: {
custom: {
50: '#6c6eae',
500: '#1d398c',
950: '#000000',
},
}SCSS
$custom: #1d398c; $custom-light: #6c6eae; $custom-dark: #000000;
JSON
{
"hex": "#1d398c",
"rgb": {
"r": 29,
"g": 57,
"b": 140
},
"hsl": {
"h": 224.865,
"s": 65.68,
"l": 33.137
},
"oklch": {
"l": 0.37827,
"c": 0.14219,
"h": 265.7
},
"luminance": 0.05081
}Semantic roles & 50–950 ramp
primary
#1D398C
secondary
#BC9F49
accent
#BE3FE9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F