#1F188C#1F188C
#1F188C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.178 H 272.8°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).
Color values
| HEX | #1F188C |
|---|---|
| RGB | rgb(31, 24, 140) |
| HSL | hsl(244, 71%, 32%) |
| HSV | hsv(244, 83%, 55%) |
| CMYK | cmyk(77.9%, 82.9%, 0%, 45.1%) |
| CIE-LAB | lab(19.38, 42.33, -61.56) |
| CIE-LCH | lch(19.38, 74.71, 304.51°) |
| OKLab | oklab(32.36% 0.0086 -0.1781) |
| OKLCH | oklch(32.36% 0.178 272.8) |
| XYZ | xyz(5.6237, 2.8374, 25.0571) |
| Luminance | 0.0284 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.43
Darkblue
#00008B
ΔE00 3.93
Cobalt Blue
#030AA7
ΔE00 4.04
Midnight Blue
#191970
ΔE00 4.50
Royal Blue (survey)
#0504AA
ΔE00 4.57
Navy
#000080
ΔE00 4.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F188C #858C18
analogous
#184B8C #1F188C #59188C
triadic
#1F188C #8C1F18 #188C1F
tetradic
#1F188C #8C184B #858C18 #188C59
square
#1F188C #8C184B #858C18 #188C59
split-complementary
#1F188C #8C5918 #4B8C18
monochromatic
#080624 #130F58 #1F188C #2B21C0 #4A40DE
Accessibility & contrast
On white
13.40
#1F188C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#1F188C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F188C
13.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F188C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F188C | 1.00 | 13.40 | 1.57 | 13.40 |
| #FFFFFF | 13.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00298A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #1f188c; /* rgb */ color: rgb(31, 24, 140); /* oklch */ color: oklch(32.4% 0.178 272.8);
Tailwind
colors: {
custom: {
50: '#6f58af',
500: '#1f188c',
950: '#000000',
},
}SCSS
$custom: #1f188c; $custom-light: #6f58af; $custom-dark: #000000;
JSON
{
"hex": "#1f188c",
"rgb": {
"r": 31,
"g": 24,
"b": 140
},
"hsl": {
"h": 243.621,
"s": 70.732,
"l": 32.157
},
"oklch": {
"l": 0.32362,
"c": 0.17832,
"h": 272.8
},
"luminance": 0.02838
}Semantic roles & 50–950 ramp
primary
#1F188C
secondary
#B7BF41
accent
#ED3AE3
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880