#1F3DA1#1F3DA1
#1F3DA1 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.166 H 266.1°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3DA1 |
|---|---|
| RGB | rgb(31, 61, 161) |
| HSL | hsl(226, 68%, 38%) |
| HSV | hsv(226, 81%, 63%) |
| CMYK | cmyk(80.7%, 62.1%, 0%, 36.9%) |
| CIE-LAB | lab(29.91, 27.12, -57.12) |
| CIE-LCH | lch(29.91, 63.24, 295.40°) |
| OKLab | oklab(40.61% -0.0113 -0.1652) |
| OKLCH | oklch(40.61% 0.166 266.1) |
| XYZ | xyz(8.6646, 6.2010, 34.4516) |
| Luminance | 0.0620 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.48
Cobalt
#0047AB
ΔE00 4.12
Blue Blue
#2242C7
ΔE00 5.38
Cobalt (survey)
#1E488F
ΔE00 5.45
Blueberry
#464196
ΔE00 5.55
Darkish Blue
#014182
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3DA1 #A1831F
analogous
#1F7EA1 #1F3DA1 #421FA1
triadic
#1F3DA1 #A11F3D #3DA11F
tetradic
#1F3DA1 #A11F7E #A1831F #1FA142
square
#1F3DA1 #A11F7E #A1831F #1FA142
split-complementary
#1F3DA1 #A1421F #7EA11F
monochromatic
#0B163A #152A6E #1F3DA1 #2950D4 #5B7ADF
Accessibility & contrast
On white
9.37
#1F3DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#1F3DA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3DA1
9.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3DA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3DA1 | 1.00 | 9.37 | 2.24 | 9.37 |
| #FFFFFF | 9.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DA4
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #1f3da1; /* rgb */ color: rgb(31, 61, 161); /* oklch */ color: oklch(40.6% 0.166 266.1);
Tailwind
colors: {
custom: {
50: '#7172be',
500: '#1f3da1',
950: '#000000',
},
}SCSS
$custom: #1f3da1; $custom-light: #7172be; $custom-dark: #000000;
JSON
{
"hex": "#1f3da1",
"rgb": {
"r": 31,
"g": 61,
"b": 161
},
"hsl": {
"h": 226.154,
"s": 67.708,
"l": 37.647
},
"oklch": {
"l": 0.40609,
"c": 0.1656,
"h": 266.1
},
"luminance": 0.06202
}Semantic roles & 50–950 ramp
primary
#1F3DA1
secondary
#C4AB58
accent
#C33DEB
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090712
muted
#7B7A81