#1F3D9C#1F3D9C
#1F3D9C is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.2% C 0.159 H 265.9°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3D9C |
|---|---|
| RGB | rgb(31, 61, 156) |
| HSL | hsl(226, 67%, 37%) |
| HSV | hsv(226, 80%, 61%) |
| CMYK | cmyk(80.1%, 60.9%, 0%, 38.8%) |
| CIE-LAB | lab(29.48, 25.18, -54.80) |
| CIE-LCH | lch(29.48, 60.30, 294.68°) |
| OKLab | oklab(40.16% -0.0114 -0.1584) |
| OKLCH | oklch(40.16% 0.159 265.9) |
| XYZ | xyz(8.2325, 6.0281, 32.1757) |
| Luminance | 0.0603 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.12
Cobalt
#0047AB
ΔE00 4.19
Cobalt (survey)
#1E488F
ΔE00 4.99
Blueberry
#464196
ΔE00 5.55
Darkish Blue
#014182
ΔE00 6.06
Blue Blue
#2242C7
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3D9C #9C7E1F
analogous
#1F7C9C #1F3D9C #401F9C
triadic
#1F3D9C #9C1F3D #3D9C1F
tetradic
#1F3D9C #9C1F7C #9C7E1F #1F9C40
square
#1F3D9C #9C1F7C #9C7E1F #1F9C40
split-complementary
#1F3D9C #9C401F #7C9C1F
monochromatic
#0B1536 #152969 #1F3D9C #2951CF #5878DE
Accessibility & contrast
On white
9.52
#1F3D9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#1F3D9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3D9C
9.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3D9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3D9C | 1.00 | 9.52 | 2.21 | 9.52 |
| #FFFFFF | 9.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004B9F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#005566
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #1f3d9c; /* rgb */ color: rgb(31, 61, 156); /* oklch */ color: oklch(40.2% 0.159 265.9);
Tailwind
colors: {
custom: {
50: '#7072ba',
500: '#1f3d9c',
950: '#000000',
},
}SCSS
$custom: #1f3d9c; $custom-light: #7072ba; $custom-dark: #000000;
JSON
{
"hex": "#1f3d9c",
"rgb": {
"r": 31,
"g": 61,
"b": 156
},
"hsl": {
"h": 225.6,
"s": 66.845,
"l": 36.667
},
"oklch": {
"l": 0.40155,
"c": 0.15881,
"h": 265.9
},
"luminance": 0.06029
}Semantic roles & 50–950 ramp
primary
#1F3D9C
secondary
#C1A855
accent
#C13EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81