#1F3F9D#1F3F9D
#1F3F9D is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.6% C 0.158 H 265.4°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3F9D |
|---|---|
| RGB | rgb(31, 63, 157) |
| HSL | hsl(225, 67%, 37%) |
| HSV | hsv(225, 80%, 62%) |
| CMYK | cmyk(80.3%, 59.9%, 0%, 38.4%) |
| CIE-LAB | lab(30.11, 24.21, -54.38) |
| CIE-LCH | lch(30.11, 59.53, 294.00°) |
| OKLab | oklab(40.65% -0.0126 -0.1572) |
| OKLCH | oklch(40.65% 0.158 265.4) |
| XYZ | xyz(8.4262, 6.2797, 32.6598) |
| Luminance | 0.0628 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.51
Cobalt
#0047AB
ΔE00 3.59
Cobalt (survey)
#1E488F
ΔE00 4.45
Blueberry
#464196
ΔE00 5.67
Darkish Blue
#014182
ΔE00 5.77
Blue Blue
#2242C7
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3F9D #9D7D1F
analogous
#1F7E9D #1F3F9D #3E1F9D
triadic
#1F3F9D #9D1F3F #3F9D1F
tetradic
#1F3F9D #9D1F7E #9D7D1F #1F9D3E
square
#1F3F9D #9D1F7E #9D7D1F #1F9D3E
split-complementary
#1F3F9D #9D3E1F #7E9D1F
monochromatic
#0B1637 #152A6A #1F3F9D #2954D0 #587ADE
Accessibility & contrast
On white
9.31
#1F3F9D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#1F3F9D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3F9D
9.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3F9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3F9D | 1.00 | 9.31 | 2.26 | 9.31 |
| #FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #1f3f9d; /* rgb */ color: rgb(31, 63, 157); /* oklch */ color: oklch(40.6% 0.158 265.4);
Tailwind
colors: {
custom: {
50: '#7073bb',
500: '#1f3f9d',
950: '#000000',
},
}SCSS
$custom: #1f3f9d; $custom-light: #7073bb; $custom-dark: #000000;
JSON
{
"hex": "#1f3f9d",
"rgb": {
"r": 31,
"g": 63,
"b": 157
},
"hsl": {
"h": 224.762,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.40647,
"c": 0.15767,
"h": 265.4
},
"luminance": 0.06281
}Semantic roles & 50–950 ramp
primary
#1F3F9D
secondary
#C2A656
accent
#BE3EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81