#1F3E9C#1F3E9C
#1F3E9C is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.4% C 0.158 H 265.6°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3E9C |
|---|---|
| RGB | rgb(31, 62, 156) |
| HSL | hsl(225, 67%, 37%) |
| HSV | hsv(225, 80%, 61%) |
| CMYK | cmyk(80.1%, 60.3%, 0%, 38.8%) |
| CIE-LAB | lab(29.75, 24.50, -54.36) |
| CIE-LCH | lch(29.75, 59.62, 294.26°) |
| OKLab | oklab(40.36% -0.012 -0.1571) |
| OKLCH | oklch(40.36% 0.158 265.6) |
| XYZ | xyz(8.2863, 6.1359, 32.1937) |
| Luminance | 0.0614 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.37
Cobalt
#0047AB
ΔE00 3.91
Cobalt (survey)
#1E488F
ΔE00 4.67
Blueberry
#464196
ΔE00 5.61
Darkish Blue
#014182
ΔE00 5.85
Blue Blue
#2242C7
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3E9C #9C7D1F
analogous
#1F7D9C #1F3E9C #3F1F9C
triadic
#1F3E9C #9C1F3E #3E9C1F
tetradic
#1F3E9C #9C1F7D #9C7D1F #1F9C3F
square
#1F3E9C #9C1F7D #9C7D1F #1F9C3F
split-complementary
#1F3E9C #9C3F1F #7D9C1F
monochromatic
#0B1536 #152A69 #1F3E9C #2952CF #5879DE
Accessibility & contrast
On white
9.43
#1F3E9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#1F3E9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3E9C
9.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3E9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3E9C | 1.00 | 9.43 | 2.23 | 9.43 |
| #FFFFFF | 9.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004C9F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #1f3e9c; /* rgb */ color: rgb(31, 62, 156); /* oklch */ color: oklch(40.4% 0.158 265.6);
Tailwind
colors: {
custom: {
50: '#7072ba',
500: '#1f3e9c',
950: '#000000',
},
}SCSS
$custom: #1f3e9c; $custom-light: #7072ba; $custom-dark: #000000;
JSON
{
"hex": "#1f3e9c",
"rgb": {
"r": 31,
"g": 62,
"b": 156
},
"hsl": {
"h": 225.12,
"s": 66.845,
"l": 36.667
},
"oklch": {
"l": 0.40356,
"c": 0.15755,
"h": 265.6
},
"luminance": 0.06137
}Semantic roles & 50–950 ramp
primary
#1F3E9C
secondary
#C1A755
accent
#BF3EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81