#1D338D#1D338D
#1D338D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.7% C 0.151 H 267.5°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).
Color values
| HEX | #1D338D |
|---|---|
| RGB | rgb(29, 51, 141) |
| HSL | hsl(228, 66%, 33%) |
| HSV | hsv(228, 79%, 55%) |
| CMYK | cmyk(79.4%, 63.8%, 0%, 44.7%) |
| CIE-LAB | lab(25.42, 25.92, -52.24) |
| CIE-LCH | lch(25.42, 58.32, 296.39°) |
| OKLab | oklab(36.7% -0.0067 -0.1511) |
| OKLCH | oklch(36.7% 0.151 267.5) |
| XYZ | xyz(6.4966, 4.5512, 25.7302) |
| Luminance | 0.0455 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.49
Blueberry
#464196
ΔE00 6.35
Darkslateblue
#483D8B
ΔE00 6.71
Darkish Blue
#014182
ΔE00 7.26
Cobalt (survey)
#1E488F
ΔE00 7.40
Cobalt
#0047AB
ΔE00 7.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D338D #8D771D
analogous
#1D6B8D #1D338D #3F1D8D
triadic
#1D338D #8D1D33 #338D1D
tetradic
#1D338D #8D1D6B #8D771D #1D8D3F
square
#1D338D #8D1D6B #8D771D #1D8D3F
split-complementary
#1D338D #8D3F1D #6B8D1D
monochromatic
#080E27 #13215A #1D338D #2745C0 #4B67DA
Accessibility & contrast
On white
10.99
#1D338D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#1D338D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D338D
10.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D338D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D338D | 1.00 | 10.99 | 1.91 | 10.99 |
| #FFFFFF | 10.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #1d338d; /* rgb */ color: rgb(29, 51, 141); /* oklch */ color: oklch(36.7% 0.151 267.5);
Tailwind
colors: {
custom: {
50: '#6c6aaf',
500: '#1d338d',
950: '#000000',
},
}SCSS
$custom: #1d338d; $custom-light: #6c6aaf; $custom-dark: #000000;
JSON
{
"hex": "#1d338d",
"rgb": {
"r": 29,
"g": 51,
"b": 141
},
"hsl": {
"h": 228.214,
"s": 65.882,
"l": 33.333
},
"oklch": {
"l": 0.36703,
"c": 0.15123,
"h": 267.5
},
"luminance": 0.04552
}Semantic roles & 50–950 ramp
primary
#1D338D
secondary
#BCA64A
accent
#C73FE9
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F