#1D237F#1D237F
#1D237F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.151 H 271.5°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).
Color values
| HEX | #1D237F |
|---|---|
| RGB | rgb(29, 35, 127) |
| HSL | hsl(236, 63%, 31%) |
| HSV | hsv(236, 77%, 50%) |
| CMYK | cmyk(77.2%, 72.4%, 0%, 50.2%) |
| CIE-LAB | lab(20.02, 31.28, -52.32) |
| CIE-LCH | lch(20.02, 60.96, 300.88°) |
| OKLab | oklab(32.35% 0.004 -0.1514) |
| OKLCH | oklch(32.35% 0.151 271.5) |
| XYZ | xyz(4.9372, 2.9951, 20.3925) |
| Luminance | 0.0300 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.22
Royal
#0C1793
ΔE00 4.38
Dark Royal Blue
#02066F
ΔE00 6.72
Darkblue
#00008B
ΔE00 7.04
Navy
#000080
ΔE00 7.11
Deep Blue
#040273
ΔE00 7.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D237F #7F791D
analogous
#1D547F #1D237F #481D7F
triadic
#1D237F #7F1D23 #237F1D
tetradic
#1D237F #7F1D54 #7F791D #1D7F48
square
#1D237F #7F1D54 #7F791D #1D7F48
split-complementary
#1D237F #7F481D #547F1D
monochromatic
#06081B #12154D #1D237F #2831B1 #424BD4
Accessibility & contrast
On white
13.13
#1D237F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#1D237F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D237F
13.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D237F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D237F | 1.00 | 13.13 | 1.60 | 13.13 |
| #FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #1d237f; /* rgb */ color: rgb(29, 35, 127); /* oklch */ color: oklch(32.3% 0.151 271.5);
Tailwind
colors: {
custom: {
50: '#6a5ea5',
500: '#1d237f',
950: '#000000',
},
}SCSS
$custom: #1d237f; $custom-light: #6a5ea5; $custom-dark: #000000;
JSON
{
"hex": "#1d237f",
"rgb": {
"r": 29,
"g": 35,
"b": 127
},
"hsl": {
"h": 236.327,
"s": 62.821,
"l": 30.588
},
"oklch": {
"l": 0.32349,
"c": 0.15145,
"h": 271.5
},
"luminance": 0.02996
}Semantic roles & 50–950 ramp
primary
#1D237F
secondary
#B2AC45
accent
#DC42E6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F