#1F3497#1F3497
#1F3497 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.9% C 0.163 H 268.0°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3497 |
|---|---|
| RGB | rgb(31, 52, 151) |
| HSL | hsl(230, 66%, 36%) |
| HSV | hsv(230, 79%, 59%) |
| CMYK | cmyk(79.5%, 65.6%, 0%, 40.8%) |
| CIE-LAB | lab(26.68, 29.31, -56.33) |
| CIE-LCH | lch(26.68, 63.50, 297.49°) |
| OKLab | oklab(37.94% -0.0057 -0.163) |
| OKLCH | oklch(37.94% 0.163 268) |
| XYZ | xyz(7.3770, 4.9808, 29.8448) |
| Luminance | 0.0498 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.98
Blueberry
#464196
ΔE00 5.90
Darkslateblue
#483D8B
ΔE00 6.64
Cobalt
#0047AB
ΔE00 6.94
Blue Blue
#2242C7
ΔE00 7.43
Royal
#0C1793
ΔE00 7.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3497 #97821F
analogous
#1F7097 #1F3497 #461F97
triadic
#1F3497 #971F34 #34971F
tetradic
#1F3497 #971F70 #97821F #1F9746
square
#1F3497 #971F70 #97821F #1F9746
split-complementary
#1F3497 #97461F #70971F
monochromatic
#0A1131 #152364 #1F3497 #2945CA #546CDC
Accessibility & contrast
On white
10.52
#1F3497 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#1F3497 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3497
10.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3497 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3497 | 1.00 | 10.52 | 2.00 | 10.52 |
| #FFFFFF | 10.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#004E60
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #1f3497; /* rgb */ color: rgb(31, 52, 151); /* oklch */ color: oklch(37.9% 0.163 268.0);
Tailwind
colors: {
custom: {
50: '#706bb7',
500: '#1f3497',
950: '#000000',
},
}SCSS
$custom: #1f3497; $custom-light: #706bb7; $custom-dark: #000000;
JSON
{
"hex": "#1f3497",
"rgb": {
"r": 31,
"g": 52,
"b": 151
},
"hsl": {
"h": 229.5,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.37941,
"c": 0.1631,
"h": 268
},
"luminance": 0.04982
}Semantic roles & 50–950 ramp
primary
#1F3497
secondary
#BFAC52
accent
#CB3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80