#1F3299#1F3299
#1F3299 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.8% C 0.168 H 268.4°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3299 |
|---|---|
| RGB | rgb(31, 50, 153) |
| HSL | hsl(231, 66%, 36%) |
| HSV | hsv(231, 80%, 60%) |
| CMYK | cmyk(79.7%, 67.3%, 0%, 40%) |
| CIE-LAB | lab(26.37, 31.40, -58.07) |
| CIE-LCH | lch(26.37, 66.02, 298.40°) |
| OKLab | oklab(37.77% -0.0047 -0.1681) |
| OKLCH | oklch(37.77% 0.168 268.4) |
| XYZ | xyz(7.4535, 4.8716, 30.6783) |
| Luminance | 0.0487 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.91
Blueberry
#464196
ΔE00 6.16
Royal
#0C1793
ΔE00 6.79
Darkslateblue
#483D8B
ΔE00 6.83
Blue Blue
#2242C7
ΔE00 7.46
Cobalt
#0047AB
ΔE00 7.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3299 #99861F
analogous
#1F6F99 #1F3299 #491F99
triadic
#1F3299 #991F32 #32991F
tetradic
#1F3299 #991F6F #99861F #1F9949
square
#1F3299 #991F6F #99861F #1F9949
split-complementary
#1F3299 #99491F #6F991F
monochromatic
#0A1133 #152166 #1F3299 #2943CC #566BDD
Accessibility & contrast
On white
10.64
#1F3299 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#1F3299 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3299
10.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3299 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3299 | 1.00 | 10.64 | 1.97 | 10.64 |
| #FFFFFF | 10.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#003997
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #1f3299; /* rgb */ color: rgb(31, 50, 153); /* oklch */ color: oklch(37.8% 0.168 268.4);
Tailwind
colors: {
custom: {
50: '#706ab8',
500: '#1f3299',
950: '#000000',
},
}SCSS
$custom: #1f3299; $custom-light: #706ab8; $custom-dark: #000000;
JSON
{
"hex": "#1f3299",
"rgb": {
"r": 31,
"g": 50,
"b": 153
},
"hsl": {
"h": 230.656,
"s": 66.304,
"l": 36.078
},
"oklch": {
"l": 0.37768,
"c": 0.16818,
"h": 268.4
},
"luminance": 0.04872
}Semantic roles & 50–950 ramp
primary
#1F3299
secondary
#C0AF54
accent
#CF3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80