#1F3F9F#1F3F9F
#1F3F9F is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.8% C 0.160 H 265.5°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3F9F |
|---|---|
| RGB | rgb(31, 63, 159) |
| HSL | hsl(225, 67%, 37%) |
| HSV | hsv(225, 81%, 62%) |
| CMYK | cmyk(80.5%, 60.4%, 0%, 37.6%) |
| CIE-LAB | lab(30.28, 24.99, -55.32) |
| CIE-LCH | lch(30.28, 60.71, 294.31°) |
| OKLab | oklab(40.83% -0.0126 -0.1599) |
| OKLCH | oklch(40.83% 0.16 265.5) |
| XYZ | xyz(8.5984, 6.3485, 33.5664) |
| Luminance | 0.0635 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.27
Cobalt
#0047AB
ΔE00 3.54
Cobalt (survey)
#1E488F
ΔE00 4.65
Blue Blue
#2242C7
ΔE00 5.65
Blueberry
#464196
ΔE00 5.66
Darkish Blue
#014182
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3F9F #9F7F1F
analogous
#1F7F9F #1F3F9F #3F1F9F
triadic
#1F3F9F #9F1F3F #3F9F1F
tetradic
#1F3F9F #9F1F7F #9F7F1F #1F9F3F
square
#1F3F9F #9F1F7F #9F7F1F #1F9F3F
split-complementary
#1F3F9F #9F3F1F #7F9F1F
monochromatic
#0B1639 #152B6C #1F3F9F #2953D2 #5A7BDF
Accessibility & contrast
On white
9.25
#1F3F9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.27
#1F3F9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3F9F
9.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3F9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3F9F | 1.00 | 9.25 | 2.27 | 9.25 |
| #FFFFFF | 9.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #1f3f9f; /* rgb */ color: rgb(31, 63, 159); /* oklch */ color: oklch(40.8% 0.160 265.5);
Tailwind
colors: {
custom: {
50: '#7173bc',
500: '#1f3f9f',
950: '#000000',
},
}SCSS
$custom: #1f3f9f; $custom-light: #7173bc; $custom-dark: #000000;
JSON
{
"hex": "#1f3f9f",
"rgb": {
"r": 31,
"g": 63,
"b": 159
},
"hsl": {
"h": 225,
"s": 67.368,
"l": 37.255
},
"oklch": {
"l": 0.40825,
"c": 0.1604,
"h": 265.5
},
"luminance": 0.0635
}Semantic roles & 50–950 ramp
primary
#1F3F9F
secondary
#C3A857
accent
#BF3EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81