#1F3794#1F3794
#1F3794 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.2% C 0.155 H 267.2°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3794 |
|---|---|
| RGB | rgb(31, 55, 148) |
| HSL | hsl(228, 65%, 35%) |
| HSV | hsv(228, 79%, 58%) |
| CMYK | cmyk(79.1%, 62.8%, 0%, 42%) |
| CIE-LAB | lab(27.19, 26.13, -53.66) |
| CIE-LCH | lch(27.19, 59.68, 295.97°) |
| OKLab | oklab(38.23% -0.0075 -0.1551) |
| OKLCH | oklch(38.23% 0.155 267.2) |
| XYZ | xyz(7.2747, 5.1610, 28.6240) |
| Luminance | 0.0516 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.43
Blueberry
#464196
ΔE00 5.69
Cobalt
#0047AB
ΔE00 6.17
Cobalt (survey)
#1E488F
ΔE00 6.43
Darkslateblue
#483D8B
ΔE00 6.53
Darkish Blue
#014182
ΔE00 6.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3794 #947C1F
analogous
#1F7294 #1F3794 #411F94
triadic
#1F3794 #941F37 #37941F
tetradic
#1F3794 #941F72 #947C1F #1F9441
square
#1F3794 #941F72 #947C1F #1F9441
split-complementary
#1F3794 #94411F #72941F
monochromatic
#0A112F #142461 #1F3794 #2A4AC7 #536EDB
Accessibility & contrast
On white
10.33
#1F3794 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#1F3794 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3794
10.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3794 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3794 | 1.00 | 10.33 | 2.03 | 10.33 |
| #FFFFFF | 10.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004697
Deuteranopia (green-blind)
#003B92
Tritanopia (blue-blind)
#004F60
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #1f3794; /* rgb */ color: rgb(31, 55, 148); /* oklch */ color: oklch(38.2% 0.155 267.2);
Tailwind
colors: {
custom: {
50: '#6f6db4',
500: '#1f3794',
950: '#000000',
},
}SCSS
$custom: #1f3794; $custom-light: #6f6db4; $custom-dark: #000000;
JSON
{
"hex": "#1f3794",
"rgb": {
"r": 31,
"g": 55,
"b": 148
},
"hsl": {
"h": 227.692,
"s": 65.363,
"l": 35.098
},
"oklch": {
"l": 0.38233,
"c": 0.15532,
"h": 267.2
},
"luminance": 0.05162
}Semantic roles & 50–950 ramp
primary
#1F3794
secondary
#BEA851
accent
#C63FE8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80