#1F3BA6#1F3BA6
#1F3BA6 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.7% C 0.175 H 266.7°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3BA6 |
|---|---|
| RGB | rgb(31, 59, 166) |
| HSL | hsl(228, 69%, 39%) |
| HSV | hsv(228, 81%, 65%) |
| CMYK | cmyk(81.3%, 64.5%, 0%, 34.9%) |
| CIE-LAB | lab(29.84, 30.39, -60.26) |
| CIE-LCH | lch(29.84, 67.49, 296.76°) |
| OKLab | oklab(40.69% -0.0102 -0.1744) |
| OKLCH | oklch(40.69% 0.175 266.7) |
| XYZ | xyz(9.0096, 6.1713, 36.7853) |
| Luminance | 0.0617 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.38
Cobalt
#0047AB
ΔE00 4.77
Blue Blue
#2242C7
ΔE00 4.82
Blueberry
#464196
ΔE00 5.66
Cobalt (survey)
#1E488F
ΔE00 6.50
Ocean Blue
#4F42B5
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3BA6 #A68A1F
analogous
#1F7EA6 #1F3BA6 #471FA6
triadic
#1F3BA6 #A61F3B #3BA61F
tetradic
#1F3BA6 #A61F7E #A68A1F #1FA647
square
#1F3BA6 #A61F7E #A68A1F #1FA647
split-complementary
#1F3BA6 #A6471F #7EA61F
monochromatic
#0C163F #152972 #1F3BA6 #2B4FD7 #5E79E1
Accessibility & contrast
On white
9.40
#1F3BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#1F3BA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3BA6
9.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3BA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3BA6 | 1.00 | 9.40 | 2.23 | 9.40 |
| #FFFFFF | 9.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#0040A4
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #1f3ba6; /* rgb */ color: rgb(31, 59, 166); /* oklch */ color: oklch(40.7% 0.175 266.7);
Tailwind
colors: {
custom: {
50: '#7370c1',
500: '#1f3ba6',
950: '#000000',
},
}SCSS
$custom: #1f3ba6; $custom-light: #7370c1; $custom-dark: #000000;
JSON
{
"hex": "#1f3ba6",
"rgb": {
"r": 31,
"g": 59,
"b": 166
},
"hsl": {
"h": 227.556,
"s": 68.528,
"l": 38.627
},
"oklch": {
"l": 0.40691,
"c": 0.17473,
"h": 266.7
},
"luminance": 0.06172
}Semantic roles & 50–950 ramp
primary
#1F3BA6
secondary
#C5AF5B
accent
#C73CEB
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81