#1F338D#1F338D
#1F338D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.8% C 0.151 H 268.2°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).
Color values
| HEX | #1F338D |
|---|---|
| RGB | rgb(31, 51, 141) |
| HSL | hsl(229, 64%, 34%) |
| HSV | hsv(229, 78%, 55%) |
| CMYK | cmyk(78%, 63.8%, 0%, 44.7%) |
| CIE-LAB | lab(25.51, 26.14, -52.09) |
| CIE-LCH | lch(25.51, 58.28, 296.64°) |
| OKLab | oklab(36.8% -0.0048 -0.1506) |
| OKLCH | oklch(36.8% 0.151 268.2) |
| XYZ | xyz(6.5550, 4.5813, 25.7330) |
| Luminance | 0.0458 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.45
Blueberry
#464196
ΔE00 6.20
Darkslateblue
#483D8B
ΔE00 6.52
Darkish Blue
#014182
ΔE00 7.41
Cobalt (survey)
#1E488F
ΔE00 7.49
Cobalt
#0047AB
ΔE00 7.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F338D #8D791F
analogous
#1F6A8D #1F338D #421F8D
triadic
#1F338D #8D1F33 #338D1F
tetradic
#1F338D #8D1F6A #8D791F #1F8D42
square
#1F338D #8D1F6A #8D791F #1F8D42
split-complementary
#1F338D #8D421F #6A8D1F
monochromatic
#090F29 #14215B #1F338D #2A45BF #4E67D8
Accessibility & contrast
On white
10.96
#1F338D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#1F338D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F338D
10.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F338D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F338D | 1.00 | 10.96 | 1.92 | 10.96 |
| #FFFFFF | 10.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #1f338d; /* rgb */ color: rgb(31, 51, 141); /* oklch */ color: oklch(36.8% 0.151 268.2);
Tailwind
colors: {
custom: {
50: '#6d6aaf',
500: '#1f338d',
950: '#000000',
},
}SCSS
$custom: #1f338d; $custom-light: #6d6aaf; $custom-dark: #000000;
JSON
{
"hex": "#1f338d",
"rgb": {
"r": 31,
"g": 51,
"b": 141
},
"hsl": {
"h": 229.091,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.36795,
"c": 0.15067,
"h": 268.2
},
"luminance": 0.04582
}Semantic roles & 50–950 ramp
primary
#1F338D
secondary
#BBA74D
accent
#C941E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F