#1F3790#1F3790
#1F3790 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.9% C 0.150 H 267.1°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3790 |
|---|---|
| RGB | rgb(31, 55, 144) |
| HSL | hsl(227, 65%, 34%) |
| HSV | hsv(227, 78%, 56%) |
| CMYK | cmyk(78.5%, 61.8%, 0%, 43.5%) |
| CIE-LAB | lab(26.84, 24.57, -51.77) |
| CIE-LCH | lch(26.84, 57.30, 295.39°) |
| OKLab | oklab(37.87% -0.0075 -0.1496) |
| OKLCH | oklch(37.87% 0.15 267.1) |
| XYZ | xyz(6.9635, 5.0365, 26.9853) |
| Luminance | 0.0504 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.05
Blueberry
#464196
ΔE00 5.81
Cobalt (survey)
#1E488F
ΔE00 6.24
Cobalt
#0047AB
ΔE00 6.35
Darkish Blue
#014182
ΔE00 6.43
Darkslateblue
#483D8B
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3790 #90781F
analogous
#1F7090 #1F3790 #401F90
triadic
#1F3790 #901F37 #37901F
tetradic
#1F3790 #901F70 #90781F #1F9040
square
#1F3790 #901F70 #90781F #1F9040
split-complementary
#1F3790 #90401F #70901F
monochromatic
#09112B #14245E #1F3790 #2A4AC2 #506DD9
Accessibility & contrast
On white
10.46
#1F3790 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#1F3790 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3790
10.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3790 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3790 | 1.00 | 10.46 | 2.01 | 10.46 |
| #FFFFFF | 10.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004593
Deuteranopia (green-blind)
#003A8E
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #1f3790; /* rgb */ color: rgb(31, 55, 144); /* oklch */ color: oklch(37.9% 0.150 267.1);
Tailwind
colors: {
custom: {
50: '#6e6db1',
500: '#1f3790',
950: '#000000',
},
}SCSS
$custom: #1f3790; $custom-light: #6e6db1; $custom-dark: #000000;
JSON
{
"hex": "#1f3790",
"rgb": {
"r": 31,
"g": 55,
"b": 144
},
"hsl": {
"h": 227.257,
"s": 64.571,
"l": 34.314
},
"oklch": {
"l": 0.37865,
"c": 0.14979,
"h": 267.1
},
"luminance": 0.05037
}Semantic roles & 50–950 ramp
primary
#1F3790
secondary
#BCA54E
accent
#C440E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80