#1F348E#1F348E
#1F348E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.1% C 0.151 H 267.9°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).
Color values
| HEX | #1F348E |
|---|---|
| RGB | rgb(31, 52, 142) |
| HSL | hsl(229, 64%, 34%) |
| HSV | hsv(229, 78%, 56%) |
| CMYK | cmyk(78.2%, 63.4%, 0%, 44.3%) |
| CIE-LAB | lab(25.86, 25.84, -52.13) |
| CIE-LCH | lch(25.86, 58.18, 296.37°) |
| OKLab | oklab(37.09% -0.0055 -0.1507) |
| OKLCH | oklch(37.09% 0.151 267.9) |
| XYZ | xyz(6.6739, 4.6995, 26.1413) |
| Luminance | 0.0470 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.28
Blueberry
#464196
ΔE00 6.07
Darkslateblue
#483D8B
ΔE00 6.49
Darkish Blue
#014182
ΔE00 7.18
Cobalt (survey)
#1E488F
ΔE00 7.18
Cobalt
#0047AB
ΔE00 7.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F348E #8E791F
analogous
#1F6C8E #1F348E #421F8E
triadic
#1F348E #8E1F34 #348E1F
tetradic
#1F348E #8E1F6C #8E791F #1F8E42
square
#1F348E #8E1F6C #8E791F #1F8E42
split-complementary
#1F348E #8E421F #6C8E1F
monochromatic
#090F2A #14225C #1F348E #2A46C0 #4F69D9
Accessibility & contrast
On white
10.82
#1F348E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#1F348E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F348E
10.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F348E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F348E | 1.00 | 10.82 | 1.94 | 10.82 |
| #FFFFFF | 10.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #1f348e; /* rgb */ color: rgb(31, 52, 142); /* oklch */ color: oklch(37.1% 0.151 267.9);
Tailwind
colors: {
custom: {
50: '#6d6bb0',
500: '#1f348e',
950: '#000000',
},
}SCSS
$custom: #1f348e; $custom-light: #6d6bb0; $custom-dark: #000000;
JSON
{
"hex": "#1f348e",
"rgb": {
"r": 31,
"g": 52,
"b": 142
},
"hsl": {
"h": 228.649,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.37085,
"c": 0.1508,
"h": 267.9
},
"luminance": 0.047
}Semantic roles & 50–950 ramp
primary
#1F348E
secondary
#BBA74D
accent
#C841E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80