#1F309E#1F309E
#1F309E is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.9% C 0.177 H 268.7°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).
Color values
| HEX | #1F309E |
|---|---|
| RGB | rgb(31, 48, 158) |
| HSL | hsl(232, 67%, 37%) |
| HSV | hsv(232, 80%, 62%) |
| CMYK | cmyk(80.4%, 69.6%, 0%, 38%) |
| CIE-LAB | lab(26.37, 34.57, -61.12) |
| CIE-LCH | lch(26.37, 70.22, 299.50°) |
| OKLab | oklab(37.92% -0.0041 -0.177) |
| OKLCH | oklch(37.92% 0.177 268.7) |
| XYZ | xyz(7.7915, 4.8729, 32.8711) |
| Luminance | 0.0487 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.75
Royal
#0C1793
ΔE00 6.19
Blueberry
#464196
ΔE00 6.55
Indigo Blue
#3A18B1
ΔE00 6.82
Darkslateblue
#483D8B
ΔE00 7.23
Blue Blue
#2242C7
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F309E #9E8D1F
analogous
#1F6F9E #1F309E #4E1F9E
triadic
#1F309E #9E1F30 #309E1F
tetradic
#1F309E #9E1F6F #9E8D1F #1F9E4E
square
#1F309E #9E1F6F #9E8D1F #1F9E4E
split-complementary
#1F309E #9E4E1F #6F9E1F
monochromatic
#0B1138 #15206B #1F309E #2940D1 #596BDE
Accessibility & contrast
On white
10.63
#1F309E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#1F309E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F309E
10.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F309E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F309E | 1.00 | 10.63 | 1.97 | 10.63 |
| #FFFFFF | 10.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #1f309e; /* rgb */ color: rgb(31, 48, 158); /* oklch */ color: oklch(37.9% 0.177 268.7);
Tailwind
colors: {
custom: {
50: '#7268bc',
500: '#1f309e',
950: '#000000',
},
}SCSS
$custom: #1f309e; $custom-light: #7268bc; $custom-dark: #000000;
JSON
{
"hex": "#1f309e",
"rgb": {
"r": 31,
"g": 48,
"b": 158
},
"hsl": {
"h": 231.969,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.3792,
"c": 0.17706,
"h": 268.7
},
"luminance": 0.04874
}Semantic roles & 50–950 ramp
primary
#1F309E
secondary
#C2B456
accent
#D33EEA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81