#1F3F9C#1F3F9C
#1F3F9C is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.156 H 265.4°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3F9C |
|---|---|
| RGB | rgb(31, 63, 156) |
| HSL | hsl(225, 67%, 37%) |
| HSV | hsv(225, 80%, 61%) |
| CMYK | cmyk(80.1%, 59.6%, 0%, 38.8%) |
| CIE-LAB | lab(30.02, 23.81, -53.91) |
| CIE-LCH | lch(30.02, 58.94, 293.83°) |
| OKLab | oklab(40.56% -0.0127 -0.1558) |
| OKLCH | oklch(40.56% 0.156 265.4) |
| XYZ | xyz(8.3412, 6.2457, 32.2120) |
| Luminance | 0.0625 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.63
Sapphire (survey)
#2138AB
ΔE00 3.63
Cobalt (survey)
#1E488F
ΔE00 4.35
Darkish Blue
#014182
ΔE00 5.65
Blueberry
#464196
ΔE00 5.69
Blue Blue
#2242C7
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3F9C #9C7C1F
analogous
#1F7E9C #1F3F9C #3E1F9C
triadic
#1F3F9C #9C1F3F #3F9C1F
tetradic
#1F3F9C #9C1F7E #9C7C1F #1F9C3E
square
#1F3F9C #9C1F7E #9C7C1F #1F9C3E
split-complementary
#1F3F9C #9C3E1F #7E9C1F
monochromatic
#0B1636 #152A69 #1F3F9C #2954CF #587ADE
Accessibility & contrast
On white
9.34
#1F3F9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#1F3F9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3F9C
9.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3F9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3F9C | 1.00 | 9.34 | 2.25 | 9.34 |
| #FFFFFF | 9.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #1f3f9c; /* rgb */ color: rgb(31, 63, 156); /* oklch */ color: oklch(40.6% 0.156 265.4);
Tailwind
colors: {
custom: {
50: '#7073ba',
500: '#1f3f9c',
950: '#000000',
},
}SCSS
$custom: #1f3f9c; $custom-light: #7073ba; $custom-dark: #000000;
JSON
{
"hex": "#1f3f9c",
"rgb": {
"r": 31,
"g": 63,
"b": 156
},
"hsl": {
"h": 224.64,
"s": 66.845,
"l": 36.667
},
"oklch": {
"l": 0.40558,
"c": 0.15629,
"h": 265.4
},
"luminance": 0.06247
}Semantic roles & 50–950 ramp
primary
#1F3F9C
secondary
#C1A655
accent
#BE3EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81