#1F339E#1F339E
#1F339E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.174 H 268.2°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).
Color values
| HEX | #1F339E |
|---|---|
| RGB | rgb(31, 51, 158) |
| HSL | hsl(231, 67%, 37%) |
| HSV | hsv(231, 80%, 62%) |
| CMYK | cmyk(80.4%, 67.7%, 0%, 38%) |
| CIE-LAB | lab(27.09, 32.63, -59.93) |
| CIE-LCH | lch(27.09, 68.23, 298.57°) |
| OKLab | oklab(38.45% -0.0056 -0.1735) |
| OKLCH | oklch(38.45% 0.174 268.2) |
| XYZ | xyz(7.9183, 5.1267, 32.9133) |
| Luminance | 0.0513 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.19
Blueberry
#464196
ΔE00 6.10
Blue Blue
#2242C7
ΔE00 6.76
Darkslateblue
#483D8B
ΔE00 6.97
Royal
#0C1793
ΔE00 7.05
Cobalt
#0047AB
ΔE00 7.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F339E #9E8A1F
analogous
#1F739E #1F339E #4A1F9E
triadic
#1F339E #9E1F33 #339E1F
tetradic
#1F339E #9E1F73 #9E8A1F #1F9E4A
square
#1F339E #9E1F73 #9E8A1F #1F9E4A
split-complementary
#1F339E #9E4A1F #739E1F
monochromatic
#0B1238 #15226B #1F339E #2944D1 #596EDE
Accessibility & contrast
On white
10.37
#1F339E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#1F339E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F339E
10.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F339E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F339E | 1.00 | 10.37 | 2.03 | 10.37 |
| #FFFFFF | 10.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #1f339e; /* rgb */ color: rgb(31, 51, 158); /* oklch */ color: oklch(38.4% 0.174 268.2);
Tailwind
colors: {
custom: {
50: '#726abc',
500: '#1f339e',
950: '#000000',
},
}SCSS
$custom: #1f339e; $custom-light: #726abc; $custom-dark: #000000;
JSON
{
"hex": "#1f339e",
"rgb": {
"r": 31,
"g": 51,
"b": 158
},
"hsl": {
"h": 230.551,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.38446,
"c": 0.17362,
"h": 268.2
},
"luminance": 0.05128
}Semantic roles & 50–950 ramp
primary
#1F339E
secondary
#C2B156
accent
#CF3EEA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81