#1F3894#1F3894
#1F3894 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.4% C 0.154 H 267.0°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3894 |
|---|---|
| RGB | rgb(31, 56, 148) |
| HSL | hsl(227, 65%, 35%) |
| HSV | hsv(227, 79%, 58%) |
| CMYK | cmyk(79.1%, 62.2%, 0%, 42%) |
| CIE-LAB | lab(27.45, 25.45, -53.22) |
| CIE-LCH | lch(27.45, 59.00, 295.56°) |
| OKLab | oklab(38.43% -0.0082 -0.1539) |
| OKLCH | oklch(38.43% 0.154 267) |
| XYZ | xyz(7.3227, 5.2569, 28.6400) |
| Luminance | 0.0526 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.50
Blueberry
#464196
ΔE00 5.65
Cobalt
#0047AB
ΔE00 5.89
Cobalt (survey)
#1E488F
ΔE00 6.09
Darkish Blue
#014182
ΔE00 6.49
Darkslateblue
#483D8B
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3894 #947B1F
analogous
#1F7394 #1F3894 #401F94
triadic
#1F3894 #941F38 #38941F
tetradic
#1F3894 #941F73 #947B1F #1F9440
square
#1F3894 #941F73 #947B1F #1F9440
split-complementary
#1F3894 #94401F #73941F
monochromatic
#0A122F #142561 #1F3894 #2A4BC7 #5370DB
Accessibility & contrast
On white
10.24
#1F3894 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#1F3894 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3894
10.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3894 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3894 | 1.00 | 10.24 | 2.05 | 10.24 |
| #FFFFFF | 10.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004697
Deuteranopia (green-blind)
#003C92
Tritanopia (blue-blind)
#005060
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #1f3894; /* rgb */ color: rgb(31, 56, 148); /* oklch */ color: oklch(38.4% 0.154 267.0);
Tailwind
colors: {
custom: {
50: '#6e6eb4',
500: '#1f3894',
950: '#000000',
},
}SCSS
$custom: #1f3894; $custom-light: #6e6eb4; $custom-dark: #000000;
JSON
{
"hex": "#1f3894",
"rgb": {
"r": 31,
"g": 56,
"b": 148
},
"hsl": {
"h": 227.179,
"s": 65.363,
"l": 35.098
},
"oklch": {
"l": 0.38431,
"c": 0.15408,
"h": 267
},
"luminance": 0.05258
}Semantic roles & 50–950 ramp
primary
#1F3894
secondary
#BEA751
accent
#C43FE8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80