#1D297F#1D297F
#1D297F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.144 H 270.1°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).
Color values
| HEX | #1D297F |
|---|---|
| RGB | rgb(29, 41, 127) |
| HSL | hsl(233, 63%, 31%) |
| HSV | hsv(233, 77%, 50%) |
| CMYK | cmyk(77.2%, 67.7%, 0%, 50.2%) |
| CIE-LAB | lab(21.50, 27.30, -49.89) |
| CIE-LCH | lch(21.50, 56.87, 298.69°) |
| OKLab | oklab(33.42% 0.0004 -0.1443) |
| OKLCH | oklch(33.42% 0.144 270.1) |
| XYZ | xyz(5.1291, 3.3788, 20.4564) |
| Luminance | 0.0338 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.69
Royal
#0C1793
ΔE00 5.86
Sapphire (survey)
#2138AB
ΔE00 7.22
Marine
#042E60
ΔE00 7.54
Darkslateblue
#483D8B
ΔE00 7.75
Blueberry
#464196
ΔE00 8.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D297F #7F731D
analogous
#1D5A7F #1D297F #421D7F
triadic
#1D297F #7F1D29 #297F1D
tetradic
#1D297F #7F1D5A #7F731D #1D7F42
square
#1D297F #7F1D5A #7F731D #1D7F42
split-complementary
#1D297F #7F421D #5A7F1D
monochromatic
#06091B #12194D #1D297F #2839B1 #4254D4
Accessibility & contrast
On white
12.53
#1D297F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#1D297F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D297F
12.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D297F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D297F | 1.00 | 12.53 | 1.68 | 12.53 |
| #FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #1d297f; /* rgb */ color: rgb(29, 41, 127); /* oklch */ color: oklch(33.4% 0.144 270.1);
Tailwind
colors: {
custom: {
50: '#6a62a5',
500: '#1d297f',
950: '#000000',
},
}SCSS
$custom: #1d297f; $custom-light: #6a62a5; $custom-dark: #000000;
JSON
{
"hex": "#1d297f",
"rgb": {
"r": 29,
"g": 41,
"b": 127
},
"hsl": {
"h": 232.653,
"s": 62.821,
"l": 30.588
},
"oklch": {
"l": 0.33421,
"c": 0.14429,
"h": 270.1
},
"luminance": 0.03379
}Semantic roles & 50–950 ramp
primary
#1D297F
secondary
#B2A545
accent
#D242E6
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F