#1F3396#1F3396
#1F3396 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.7% C 0.163 H 268.2°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3396 |
|---|---|
| RGB | rgb(31, 51, 150) |
| HSL | hsl(230, 66%, 35%) |
| HSV | hsv(230, 79%, 59%) |
| CMYK | cmyk(79.3%, 66%, 0%, 41.2%) |
| CIE-LAB | lab(26.33, 29.60, -56.29) |
| CIE-LCH | lch(26.33, 63.60, 297.74°) |
| OKLab | oklab(37.66% -0.0051 -0.1629) |
| OKLCH | oklch(37.66% 0.163 268.2) |
| XYZ | xyz(7.2520, 4.8601, 29.4041) |
| Luminance | 0.0486 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.18
Blueberry
#464196
ΔE00 6.02
Darkslateblue
#483D8B
ΔE00 6.66
Royal
#0C1793
ΔE00 7.16
Cobalt
#0047AB
ΔE00 7.25
Blue Blue
#2242C7
ΔE00 7.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3396 #96821F
analogous
#1F6E96 #1F3396 #461F96
triadic
#1F3396 #961F33 #33961F
tetradic
#1F3396 #961F6E #96821F #1F9646
square
#1F3396 #961F6E #96821F #1F9646
split-complementary
#1F3396 #96461F #6E961F
monochromatic
#0A1131 #152263 #1F3396 #2944C9 #546BDC
Accessibility & contrast
On white
10.65
#1F3396 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#1F3396 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3396
10.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3396 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3396 | 1.00 | 10.65 | 1.97 | 10.65 |
| #FFFFFF | 10.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#003994
Tritanopia (blue-blind)
#004D5F
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #1f3396; /* rgb */ color: rgb(31, 51, 150); /* oklch */ color: oklch(37.7% 0.163 268.2);
Tailwind
colors: {
custom: {
50: '#6f6ab6',
500: '#1f3396',
950: '#000000',
},
}SCSS
$custom: #1f3396; $custom-light: #6f6ab6; $custom-dark: #000000;
JSON
{
"hex": "#1f3396",
"rgb": {
"r": 31,
"g": 51,
"b": 150
},
"hsl": {
"h": 229.916,
"s": 65.746,
"l": 35.49
},
"oklch": {
"l": 0.37657,
"c": 0.16296,
"h": 268.2
},
"luminance": 0.04861
}Semantic roles & 50–950 ramp
primary
#1F3396
secondary
#BFAD52
accent
#CC3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80