#1F3796#1F3796
#1F3796 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.4% C 0.158 H 267.3°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3796 |
|---|---|
| RGB | rgb(31, 55, 150) |
| HSL | hsl(228, 66%, 35%) |
| HSV | hsv(228, 79%, 59%) |
| CMYK | cmyk(79.3%, 63.3%, 0%, 41.2%) |
| CIE-LAB | lab(27.37, 26.91, -54.59) |
| CIE-LCH | lch(27.37, 60.87, 296.24°) |
| OKLab | oklab(38.42% -0.0075 -0.1579) |
| OKLCH | oklch(38.42% 0.158 267.3) |
| XYZ | xyz(7.4344, 5.2248, 29.4649) |
| Luminance | 0.0523 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.12
Blueberry
#464196
ΔE00 5.65
Cobalt
#0047AB
ΔE00 6.10
Cobalt (survey)
#1E488F
ΔE00 6.54
Darkslateblue
#483D8B
ΔE00 6.56
Darkish Blue
#014182
ΔE00 6.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3796 #967E1F
analogous
#1F7296 #1F3796 #421F96
triadic
#1F3796 #961F37 #37961F
tetradic
#1F3796 #961F72 #967E1F #1F9642
square
#1F3796 #961F72 #967E1F #1F9642
split-complementary
#1F3796 #96421F #72961F
monochromatic
#0A1231 #152463 #1F3796 #294AC9 #546FDC
Accessibility & contrast
On white
10.27
#1F3796 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#1F3796 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3796
10.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3796 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3796 | 1.00 | 10.27 | 2.05 | 10.27 |
| #FFFFFF | 10.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #1f3796; /* rgb */ color: rgb(31, 55, 150); /* oklch */ color: oklch(38.4% 0.158 267.3);
Tailwind
colors: {
custom: {
50: '#6f6db6',
500: '#1f3796',
950: '#000000',
},
}SCSS
$custom: #1f3796; $custom-light: #6f6db6; $custom-dark: #000000;
JSON
{
"hex": "#1f3796",
"rgb": {
"r": 31,
"g": 55,
"b": 150
},
"hsl": {
"h": 227.899,
"s": 65.746,
"l": 35.49
},
"oklch": {
"l": 0.38419,
"c": 0.15807,
"h": 267.3
},
"luminance": 0.05226
}Semantic roles & 50–950 ramp
primary
#1F3796
secondary
#BFA952
accent
#C63FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80