#1F309C#1F309C
#1F309C is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.7% C 0.174 H 268.7°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).
Color values
| HEX | #1F309C |
|---|---|
| RGB | rgb(31, 48, 156) |
| HSL | hsl(232, 67%, 37%) |
| HSV | hsv(232, 80%, 61%) |
| CMYK | cmyk(80.1%, 69.2%, 0%, 38.8%) |
| CIE-LAB | lab(26.17, 33.83, -60.22) |
| CIE-LCH | lch(26.17, 69.08, 299.33°) |
| OKLab | oklab(37.71% -0.0039 -0.1744) |
| OKLCH | oklch(37.71% 0.174 268.7) |
| XYZ | xyz(7.6207, 4.8046, 31.9718) |
| Luminance | 0.0481 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.92
Royal
#0C1793
ΔE00 6.18
Blueberry
#464196
ΔE00 6.51
Indigo Blue
#3A18B1
ΔE00 7.00
Darkslateblue
#483D8B
ΔE00 7.13
Blue Blue
#2242C7
ΔE00 7.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F309C #9C8B1F
analogous
#1F6F9C #1F309C #4D1F9C
triadic
#1F309C #9C1F30 #309C1F
tetradic
#1F309C #9C1F6F #9C8B1F #1F9C4D
square
#1F309C #9C1F6F #9C8B1F #1F9C4D
split-complementary
#1F309C #9C4D1F #6F9C1F
monochromatic
#0B1136 #152069 #1F309C #2940CF #586ADE
Accessibility & contrast
On white
10.71
#1F309C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#1F309C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F309C
10.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F309C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F309C | 1.00 | 10.71 | 1.96 | 10.71 |
| #FFFFFF | 10.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #1f309c; /* rgb */ color: rgb(31, 48, 156); /* oklch */ color: oklch(37.7% 0.174 268.7);
Tailwind
colors: {
custom: {
50: '#7168ba',
500: '#1f309c',
950: '#000000',
},
}SCSS
$custom: #1f309c; $custom-light: #7168ba; $custom-dark: #000000;
JSON
{
"hex": "#1f309c",
"rgb": {
"r": 31,
"g": 48,
"b": 156
},
"hsl": {
"h": 231.84,
"s": 66.845,
"l": 36.667
},
"oklch": {
"l": 0.37715,
"c": 0.17445,
"h": 268.7
},
"luminance": 0.04806
}Semantic roles & 50–950 ramp
primary
#1F309C
secondary
#C1B355
accent
#D23EEA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81