#1F318C#1F318C
#1F318C is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.152 H 268.7°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).
Color values
| HEX | #1F318C |
|---|---|
| RGB | rgb(31, 49, 140) |
| HSL | hsl(230, 64%, 34%) |
| HSV | hsv(230, 78%, 55%) |
| CMYK | cmyk(77.9%, 65%, 0%, 45.1%) |
| CIE-LAB | lab(24.89, 27.11, -52.48) |
| CIE-LCH | lch(24.89, 59.06, 297.32°) |
| OKLab | oklab(36.31% -0.0035 -0.1517) |
| OKLCH | oklch(36.31% 0.152 268.7) |
| XYZ | xyz(6.3954, 4.3807, 25.3144) |
| Luminance | 0.0438 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.70
Blueberry
#464196
ΔE00 6.46
Darkslateblue
#483D8B
ΔE00 6.62
Royal
#0C1793
ΔE00 7.01
Midnight Blue
#191970
ΔE00 7.39
Darkish Blue
#014182
ΔE00 7.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F318C #8C7A1F
analogous
#1F678C #1F318C #431F8C
triadic
#1F318C #8C1F31 #318C1F
tetradic
#1F318C #8C1F67 #8C7A1F #1F8C43
square
#1F318C #8C1F67 #8C7A1F #1F8C43
split-complementary
#1F318C #8C431F #678C1F
monochromatic
#090E28 #141F5A #1F318C #2A43BE #4E64D8
Accessibility & contrast
On white
11.19
#1F318C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#1F318C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F318C
11.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F318C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F318C | 1.00 | 11.19 | 1.88 | 11.19 |
| #FFFFFF | 11.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00368A
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #1f318c; /* rgb */ color: rgb(31, 49, 140); /* oklch */ color: oklch(36.3% 0.152 268.7);
Tailwind
colors: {
custom: {
50: '#6d69ae',
500: '#1f318c',
950: '#000000',
},
}SCSS
$custom: #1f318c; $custom-light: #6d69ae; $custom-dark: #000000;
JSON
{
"hex": "#1f318c",
"rgb": {
"r": 31,
"g": 49,
"b": 140
},
"hsl": {
"h": 230.092,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.36313,
"c": 0.15179,
"h": 268.7
},
"luminance": 0.04381
}Semantic roles & 50–950 ramp
primary
#1F318C
secondary
#BBA84C
accent
#CB41E7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F