#1F309D#1F309D
#1F309D is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.8% C 0.176 H 268.7°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).
Color values
| HEX | #1F309D |
|---|---|
| RGB | rgb(31, 48, 157) |
| HSL | hsl(232, 67%, 37%) |
| HSV | hsv(232, 80%, 62%) |
| CMYK | cmyk(80.3%, 69.4%, 0%, 38.4%) |
| CIE-LAB | lab(26.27, 34.20, -60.67) |
| CIE-LCH | lch(26.27, 69.65, 299.41°) |
| OKLab | oklab(37.82% -0.004 -0.1757) |
| OKLCH | oklch(37.82% 0.176 268.7) |
| XYZ | xyz(7.7057, 4.8386, 32.4196) |
| Luminance | 0.0484 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.83
Royal
#0C1793
ΔE00 6.18
Blueberry
#464196
ΔE00 6.53
Indigo Blue
#3A18B1
ΔE00 6.91
Darkslateblue
#483D8B
ΔE00 7.18
Blue Blue
#2242C7
ΔE00 7.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F309D #9D8C1F
analogous
#1F6F9D #1F309D #4D1F9D
triadic
#1F309D #9D1F30 #309D1F
tetradic
#1F309D #9D1F6F #9D8C1F #1F9D4D
square
#1F309D #9D1F6F #9D8C1F #1F9D4D
split-complementary
#1F309D #9D4D1F #6F9D1F
monochromatic
#0B1137 #15206A #1F309D #2940D0 #586ADE
Accessibility & contrast
On white
10.67
#1F309D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#1F309D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F309D
10.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F309D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F309D | 1.00 | 10.67 | 1.97 | 10.67 |
| #FFFFFF | 10.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00389B
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #1f309d; /* rgb */ color: rgb(31, 48, 157); /* oklch */ color: oklch(37.8% 0.176 268.7);
Tailwind
colors: {
custom: {
50: '#7268bb',
500: '#1f309d',
950: '#000000',
},
}SCSS
$custom: #1f309d; $custom-light: #7268bb; $custom-dark: #000000;
JSON
{
"hex": "#1f309d",
"rgb": {
"r": 31,
"g": 48,
"b": 157
},
"hsl": {
"h": 231.905,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.37817,
"c": 0.17576,
"h": 268.7
},
"luminance": 0.0484
}Semantic roles & 50–950 ramp
primary
#1F309D
secondary
#C2B356
accent
#D33EEA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81