#1D238F#1D238F
#1D238F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.172 H 270.5°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).
Color values
| HEX | #1D238F |
|---|---|
| RGB | rgb(29, 35, 143) |
| HSL | hsl(237, 66%, 34%) |
| HSV | hsv(237, 80%, 56%) |
| CMYK | cmyk(79.7%, 75.5%, 0%, 43.9%) |
| CIE-LAB | lab(21.75, 37.09, -59.52) |
| CIE-LCH | lch(21.75, 70.13, 301.93°) |
| OKLab | oklab(34.1% 0.0016 -0.1724) |
| OKLCH | oklch(34.1% 0.172 270.5) |
| XYZ | xyz(6.0640, 3.4458, 26.3268) |
| Luminance | 0.0345 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.85
Midnight Blue
#191970
ΔE00 5.07
Cobalt Blue
#030AA7
ΔE00 5.38
Royal Blue (survey)
#0504AA
ΔE00 5.99
Indigo Blue
#3A18B1
ΔE00 6.26
Darkblue
#00008B
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D238F #8F891D
analogous
#1D5C8F #1D238F #501D8F
triadic
#1D238F #8F1D23 #238F1D
tetradic
#1D238F #8F1D5C #8F891D #1D8F50
square
#1D238F #8F1D5C #8F891D #1D8F50
split-complementary
#1D238F #8F501D #5C8F1D
monochromatic
#080A29 #13175C #1D238F #272FC2 #4C53DB
Accessibility & contrast
On white
12.43
#1D238F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#1D238F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D238F
12.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D238F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D238F | 1.00 | 12.43 | 1.69 | 12.43 |
| #FFFFFF | 12.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #1d238f; /* rgb */ color: rgb(29, 35, 143); /* oklch */ color: oklch(34.1% 0.172 270.5);
Tailwind
colors: {
custom: {
50: '#6f5fb1',
500: '#1d238f',
950: '#000000',
},
}SCSS
$custom: #1d238f; $custom-light: #6f5fb1; $custom-dark: #000000;
JSON
{
"hex": "#1d238f",
"rgb": {
"r": 29,
"g": 35,
"b": 143
},
"hsl": {
"h": 236.842,
"s": 66.279,
"l": 33.725
},
"oklch": {
"l": 0.34097,
"c": 0.17237,
"h": 270.5
},
"luminance": 0.03446
}Semantic roles & 50–950 ramp
primary
#1D238F
secondary
#BDB74B
accent
#E03FE9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980