#1F399B#1F399B
#1F399B is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.3% C 0.162 H 266.9°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).
Color values
| HEX | #1F399B |
|---|---|
| RGB | rgb(31, 57, 155) |
| HSL | hsl(227, 67%, 36%) |
| HSV | hsv(227, 80%, 61%) |
| CMYK | cmyk(80%, 63.2%, 0%, 39.2%) |
| CIE-LAB | lab(28.34, 27.49, -56.06) |
| CIE-LCH | lch(28.34, 62.44, 296.12°) |
| OKLab | oklab(39.28% -0.0088 -0.1622) |
| OKLCH | oklch(39.28% 0.162 266.9) |
| XYZ | xyz(7.9425, 5.5832, 31.6631) |
| Luminance | 0.0558 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.52
Cobalt
#0047AB
ΔE00 5.39
Blueberry
#464196
ΔE00 5.52
Cobalt (survey)
#1E488F
ΔE00 6.20
Blue Blue
#2242C7
ΔE00 6.42
Darkslateblue
#483D8B
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F399B #9B811F
analogous
#1F779B #1F399B #431F9B
triadic
#1F399B #9B1F39 #399B1F
tetradic
#1F399B #9B1F77 #9B811F #1F9B43
square
#1F399B #9B1F77 #9B811F #1F9B43
split-complementary
#1F399B #9B431F #779B1F
monochromatic
#0B1335 #152668 #1F399B #294CCE #5773DD
Accessibility & contrast
On white
9.92
#1F399B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#1F399B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F399B
9.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F399B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F399B | 1.00 | 9.92 | 2.12 | 9.92 |
| #FFFFFF | 9.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#003D99
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #1f399b; /* rgb */ color: rgb(31, 57, 155); /* oklch */ color: oklch(39.3% 0.162 266.9);
Tailwind
colors: {
custom: {
50: '#706fb9',
500: '#1f399b',
950: '#000000',
},
}SCSS
$custom: #1f399b; $custom-light: #706fb9; $custom-dark: #000000;
JSON
{
"hex": "#1f399b",
"rgb": {
"r": 31,
"g": 57,
"b": 155
},
"hsl": {
"h": 227.419,
"s": 66.667,
"l": 36.471
},
"oklch": {
"l": 0.39275,
"c": 0.16241,
"h": 266.9
},
"luminance": 0.05584
}Semantic roles & 50–950 ramp
primary
#1F399B
secondary
#C1AA55
accent
#C63EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81