#1F2F8C#1F2F8C
#1F2F8C is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.154 H 269.2°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2F8C |
|---|---|
| RGB | rgb(31, 47, 140) |
| HSL | hsl(231, 64%, 34%) |
| HSV | hsv(231, 78%, 55%) |
| CMYK | cmyk(77.9%, 66.4%, 0%, 45.1%) |
| CIE-LAB | lab(24.38, 28.46, -53.32) |
| CIE-LCH | lch(24.38, 60.44, 298.09°) |
| OKLab | oklab(35.93% -0.0022 -0.1542) |
| OKLCH | oklch(35.93% 0.154 269.2) |
| XYZ | xyz(6.3136, 4.2171, 25.2871) |
| Luminance | 0.0422 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.87
Royal
#0C1793
ΔE00 6.38
Blueberry
#464196
ΔE00 6.74
Darkslateblue
#483D8B
ΔE00 6.79
Midnight Blue
#191970
ΔE00 6.87
Marine
#042E60
ΔE00 8.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2F8C #8C7C1F
analogous
#1F658C #1F2F8C #451F8C
triadic
#1F2F8C #8C1F2F #2F8C1F
tetradic
#1F2F8C #8C1F65 #8C7C1F #1F8C45
square
#1F2F8C #8C1F65 #8C7C1F #1F8C45
split-complementary
#1F2F8C #8C451F #658C1F
monochromatic
#090D28 #141E5A #1F2F8C #2A40BE #4E62D8
Accessibility & contrast
On white
11.39
#1F2F8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#1F2F8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2F8C
11.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2F8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2F8C | 1.00 | 11.39 | 1.84 | 11.39 |
| #FFFFFF | 11.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #1f2f8c; /* rgb */ color: rgb(31, 47, 140); /* oklch */ color: oklch(35.9% 0.154 269.2);
Tailwind
colors: {
custom: {
50: '#6d67af',
500: '#1f2f8c',
950: '#000000',
},
}SCSS
$custom: #1f2f8c; $custom-light: #6d67af; $custom-dark: #000000;
JSON
{
"hex": "#1f2f8c",
"rgb": {
"r": 31,
"g": 47,
"b": 140
},
"hsl": {
"h": 231.193,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.35934,
"c": 0.15426,
"h": 269.2
},
"luminance": 0.04218
}Semantic roles & 50–950 ramp
primary
#1F2F8C
secondary
#BBAA4C
accent
#CE41E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F