#1F308C#1F308C
#1F308C is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.153 H 268.9°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).
Color values
| HEX | #1F308C |
|---|---|
| RGB | rgb(31, 48, 140) |
| HSL | hsl(231, 64%, 34%) |
| HSV | hsv(231, 78%, 55%) |
| CMYK | cmyk(77.9%, 65.7%, 0%, 45.1%) |
| CIE-LAB | lab(24.63, 27.78, -52.90) |
| CIE-LCH | lch(24.63, 59.75, 297.71°) |
| OKLab | oklab(36.12% -0.0028 -0.153) |
| OKLCH | oklch(36.12% 0.153 268.9) |
| XYZ | xyz(6.3540, 4.2980, 25.3006) |
| Luminance | 0.0430 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.77
Blueberry
#464196
ΔE00 6.59
Royal
#0C1793
ΔE00 6.69
Darkslateblue
#483D8B
ΔE00 6.70
Midnight Blue
#191970
ΔE00 7.13
Marine
#042E60
ΔE00 8.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F308C #8C7B1F
analogous
#1F668C #1F308C #441F8C
triadic
#1F308C #8C1F30 #308C1F
tetradic
#1F308C #8C1F66 #8C7B1F #1F8C44
square
#1F308C #8C1F66 #8C7B1F #1F8C44
split-complementary
#1F308C #8C441F #668C1F
monochromatic
#090E28 #141F5A #1F308C #2A41BE #4E63D8
Accessibility & contrast
On white
11.29
#1F308C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#1F308C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F308C
11.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F308C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F308C | 1.00 | 11.29 | 1.86 | 11.29 |
| #FFFFFF | 11.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #1f308c; /* rgb */ color: rgb(31, 48, 140); /* oklch */ color: oklch(36.1% 0.153 268.9);
Tailwind
colors: {
custom: {
50: '#6d68ae',
500: '#1f308c',
950: '#000000',
},
}SCSS
$custom: #1f308c; $custom-light: #6d68ae; $custom-dark: #000000;
JSON
{
"hex": "#1f308c",
"rgb": {
"r": 31,
"g": 48,
"b": 140
},
"hsl": {
"h": 230.642,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.36123,
"c": 0.15303,
"h": 268.9
},
"luminance": 0.04299
}Semantic roles & 50–950 ramp
primary
#1F308C
secondary
#BBA94C
accent
#CD41E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F