#1F307C#1F307C
#1F307C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.6% C 0.130 H 268.9°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).
Color values
| HEX | #1F307C |
|---|---|
| RGB | rgb(31, 48, 124) |
| HSL | hsl(229, 60%, 30%) |
| HSV | hsv(229, 75%, 49%) |
| CMYK | cmyk(75%, 61.3%, 0%, 51.4%) |
| CIE-LAB | lab(23.20, 21.55, -45.21) |
| CIE-LCH | lch(23.20, 50.08, 295.49°) |
| OKLab | oklab(34.62% -0.0026 -0.1304) |
| OKLCH | oklch(34.62% 0.13 268.9) |
| XYZ | xyz(5.2589, 3.8599, 19.5328) |
| Luminance | 0.0386 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.93
Midnight Blue
#191970
ΔE00 6.83
Marine Blue
#01386A
ΔE00 6.97
Darkslateblue
#483D8B
ΔE00 7.08
Sapphire (survey)
#2138AB
ΔE00 7.11
Blueberry
#464196
ΔE00 7.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F307C #7C6B1F
analogous
#1F5E7C #1F307C #3C1F7C
triadic
#1F307C #7C1F30 #307C1F
tetradic
#1F307C #7C1F5E #7C6B1F #1F7C3C
square
#1F307C #7C1F5E #7C6B1F #1F7C3C
split-complementary
#1F307C #7C3C1F #5E7C1F
monochromatic
#070A1A #131D4B #1F307C #2B43AD #455ED0
Accessibility & contrast
On white
11.85
#1F307C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#1F307C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F307C
11.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F307C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F307C | 1.00 | 11.85 | 1.77 | 11.85 |
| #FFFFFF | 11.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #1f307c; /* rgb */ color: rgb(31, 48, 124); /* oklch */ color: oklch(34.6% 0.130 268.9);
Tailwind
colors: {
custom: {
50: '#6968a3',
500: '#1f307c',
950: '#000000',
},
}SCSS
$custom: #1f307c; $custom-light: #6968a3; $custom-dark: #000000;
JSON
{
"hex": "#1f307c",
"rgb": {
"r": 31,
"g": 48,
"b": 124
},
"hsl": {
"h": 229.032,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.34622,
"c": 0.13047,
"h": 268.9
},
"luminance": 0.0386
}Semantic roles & 50–950 ramp
primary
#1F307C
secondary
#AF9C48
accent
#C645E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F