#1D238C#1D238C
#1D238C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.169 H 270.7°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).
Color values
| HEX | #1D238C |
|---|---|
| RGB | rgb(29, 35, 140) |
| HSL | hsl(237, 66%, 33%) |
| HSV | hsv(237, 79%, 55%) |
| CMYK | cmyk(79.3%, 75%, 0%, 45.1%) |
| CIE-LAB | lab(21.42, 36.02, -58.19) |
| CIE-LCH | lch(21.42, 68.44, 301.75°) |
| OKLab | oklab(33.76% 0.0021 -0.1685) |
| OKLCH | oklch(33.76% 0.169 270.7) |
| XYZ | xyz(5.8397, 3.3561, 25.1459) |
| Luminance | 0.0336 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.02
Midnight Blue
#191970
ΔE00 4.69
Cobalt Blue
#030AA7
ΔE00 5.70
Royal Blue (survey)
#0504AA
ΔE00 6.31
Darkblue
#00008B
ΔE00 6.40
Indigo Blue
#3A18B1
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D238C #8C861D
analogous
#1D5A8C #1D238C #4E1D8C
triadic
#1D238C #8C1D23 #238C1D
tetradic
#1D238C #8C1D5A #8C861D #1D8C4E
square
#1D238C #8C1D5A #8C861D #1D8C4E
split-complementary
#1D238C #8C4E1D #5A8C1D
monochromatic
#080A27 #121659 #1D238C #2830BF #4A52D9
Accessibility & contrast
On white
12.56
#1D238C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#1D238C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D238C
12.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D238C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D238C | 1.00 | 12.56 | 1.67 | 12.56 |
| #FFFFFF | 12.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #1d238c; /* rgb */ color: rgb(29, 35, 140); /* oklch */ color: oklch(33.8% 0.169 270.7);
Tailwind
colors: {
custom: {
50: '#6e5faf',
500: '#1d238c',
950: '#000000',
},
}SCSS
$custom: #1d238c; $custom-light: #6e5faf; $custom-dark: #000000;
JSON
{
"hex": "#1d238c",
"rgb": {
"r": 29,
"g": 35,
"b": 140
},
"hsl": {
"h": 236.757,
"s": 65.68,
"l": 33.137
},
"oklch": {
"l": 0.33764,
"c": 0.16852,
"h": 270.7
},
"luminance": 0.03357
}Semantic roles & 50–950 ramp
primary
#1D238C
secondary
#BCB549
accent
#DF3FE9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F