#1F339B#1F339B
#1F339B is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.1% C 0.170 H 268.2°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).
Color values
| HEX | #1F339B |
|---|---|
| RGB | rgb(31, 51, 155) |
| HSL | hsl(230, 67%, 36%) |
| HSV | hsv(230, 80%, 61%) |
| CMYK | cmyk(80%, 67.1%, 0%, 39.2%) |
| CIE-LAB | lab(26.80, 31.50, -58.57) |
| CIE-LCH | lch(26.80, 66.51, 298.27°) |
| OKLab | oklab(38.15% -0.0054 -0.1696) |
| OKLCH | oklch(38.15% 0.17 268.2) |
| XYZ | xyz(7.6632, 5.0246, 31.5700) |
| Luminance | 0.0503 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.54
Blueberry
#464196
ΔE00 6.05
Darkslateblue
#483D8B
ΔE00 6.84
Royal
#0C1793
ΔE00 7.06
Blue Blue
#2242C7
ΔE00 7.10
Cobalt
#0047AB
ΔE00 7.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F339B #9B871F
analogous
#1F719B #1F339B #491F9B
triadic
#1F339B #9B1F33 #339B1F
tetradic
#1F339B #9B1F71 #9B871F #1F9B49
square
#1F339B #9B1F71 #9B871F #1F9B49
split-complementary
#1F339B #9B491F #719B1F
monochromatic
#0B1135 #152268 #1F339B #2944CE #576DDD
Accessibility & contrast
On white
10.47
#1F339B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#1F339B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F339B
10.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F339B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F339B | 1.00 | 10.47 | 2.01 | 10.47 |
| #FFFFFF | 10.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #1f339b; /* rgb */ color: rgb(31, 51, 155); /* oklch */ color: oklch(38.1% 0.170 268.2);
Tailwind
colors: {
custom: {
50: '#716ab9',
500: '#1f339b',
950: '#000000',
},
}SCSS
$custom: #1f339b; $custom-light: #716ab9; $custom-dark: #000000;
JSON
{
"hex": "#1f339b",
"rgb": {
"r": 31,
"g": 51,
"b": 155
},
"hsl": {
"h": 230.323,
"s": 66.667,
"l": 36.471
},
"oklch": {
"l": 0.38148,
"c": 0.16966,
"h": 268.2
},
"luminance": 0.05026
}Semantic roles & 50–950 ramp
primary
#1F339B
secondary
#C1B055
accent
#CE3EEA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81