#1F308F#1F308F
#1F308F is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.157 H 268.9°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).
Color values
| HEX | #1F308F |
|---|---|
| RGB | rgb(31, 48, 143) |
| HSL | hsl(231, 64%, 34%) |
| HSV | hsv(231, 78%, 56%) |
| CMYK | cmyk(78.3%, 66.4%, 0%, 43.9%) |
| CIE-LAB | lab(24.91, 28.93, -54.30) |
| CIE-LCH | lch(24.91, 61.53, 298.05°) |
| OKLab | oklab(36.42% -0.003 -0.1571) |
| OKLCH | oklch(36.42% 0.157 268.9) |
| XYZ | xyz(6.5782, 4.3877, 26.4815) |
| Luminance | 0.0439 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.38
Royal
#0C1793
ΔE00 6.51
Blueberry
#464196
ΔE00 6.52
Darkslateblue
#483D8B
ΔE00 6.73
Midnight Blue
#191970
ΔE00 7.30
Cobalt
#0047AB
ΔE00 8.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F308F #8F7E1F
analogous
#1F688F #1F308F #461F8F
triadic
#1F308F #8F1F30 #308F1F
tetradic
#1F308F #8F1F68 #8F7E1F #1F8F46
square
#1F308F #8F1F68 #8F7E1F #1F8F46
split-complementary
#1F308F #8F461F #688F1F
monochromatic
#090E2A #141F5D #1F308F #2A41C1 #4F64D9
Accessibility & contrast
On white
11.18
#1F308F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#1F308F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F308F
11.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F308F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F308F | 1.00 | 11.18 | 1.88 | 11.18 |
| #FFFFFF | 11.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #1f308f; /* rgb */ color: rgb(31, 48, 143); /* oklch */ color: oklch(36.4% 0.157 268.9);
Tailwind
colors: {
custom: {
50: '#6e68b1',
500: '#1f308f',
950: '#000000',
},
}SCSS
$custom: #1f308f; $custom-light: #6e68b1; $custom-dark: #000000;
JSON
{
"hex": "#1f308f",
"rgb": {
"r": 31,
"g": 48,
"b": 143
},
"hsl": {
"h": 230.893,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.36415,
"c": 0.15713,
"h": 268.9
},
"luminance": 0.04388
}Semantic roles & 50–950 ramp
primary
#1F308F
secondary
#BCAB4E
accent
#CE40E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80