#1F3E9F#1F3E9F
#1F3E9F is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.162 H 265.8°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3E9F |
|---|---|
| RGB | rgb(31, 62, 159) |
| HSL | hsl(225, 67%, 37%) |
| HSV | hsv(225, 81%, 62%) |
| CMYK | cmyk(80.5%, 61%, 0%, 37.6%) |
| CIE-LAB | lab(30.01, 25.67, -55.76) |
| CIE-LCH | lch(30.01, 61.38, 294.72°) |
| OKLab | oklab(40.63% -0.0119 -0.1612) |
| OKLCH | oklch(40.63% 0.162 265.8) |
| XYZ | xyz(8.5435, 6.2388, 33.5481) |
| Luminance | 0.0624 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.99
Cobalt
#0047AB
ΔE00 3.84
Cobalt (survey)
#1E488F
ΔE00 4.95
Blueberry
#464196
ΔE00 5.58
Blue Blue
#2242C7
ΔE00 5.65
Darkish Blue
#014182
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3E9F #9F801F
analogous
#1F7E9F #1F3E9F #401F9F
triadic
#1F3E9F #9F1F3E #3E9F1F
tetradic
#1F3E9F #9F1F7E #9F801F #1F9F40
square
#1F3E9F #9F1F7E #9F801F #1F9F40
split-complementary
#1F3E9F #9F401F #7E9F1F
monochromatic
#0B1639 #152A6C #1F3E9F #2952D2 #5A7ADF
Accessibility & contrast
On white
9.34
#1F3E9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#1F3E9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3E9F
9.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3E9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3E9F | 1.00 | 9.34 | 2.25 | 9.34 |
| #FFFFFF | 9.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #1f3e9f; /* rgb */ color: rgb(31, 62, 159); /* oklch */ color: oklch(40.6% 0.162 265.8);
Tailwind
colors: {
custom: {
50: '#7172bc',
500: '#1f3e9f',
950: '#000000',
},
}SCSS
$custom: #1f3e9f; $custom-light: #7172bc; $custom-dark: #000000;
JSON
{
"hex": "#1f3e9f",
"rgb": {
"r": 31,
"g": 62,
"b": 159
},
"hsl": {
"h": 225.469,
"s": 67.368,
"l": 37.255
},
"oklch": {
"l": 0.40625,
"c": 0.16165,
"h": 265.8
},
"luminance": 0.0624
}Semantic roles & 50–950 ramp
primary
#1F3E9F
secondary
#C3A957
accent
#C03EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81