#1F338A#1F338A
#1F338A is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.5% C 0.146 H 268.1°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).
Color values
| HEX | #1F338A |
|---|---|
| RGB | rgb(31, 51, 138) |
| HSL | hsl(229, 63%, 33%) |
| HSV | hsv(229, 78%, 54%) |
| CMYK | cmyk(77.5%, 63%, 0%, 45.9%) |
| CIE-LAB | lab(25.24, 24.97, -50.67) |
| CIE-LCH | lch(25.24, 56.48, 296.23°) |
| OKLab | oklab(36.51% -0.0048 -0.1464) |
| OKLCH | oklch(36.51% 0.147 268.1) |
| XYZ | xyz(6.3348, 4.4932, 24.5733) |
| Luminance | 0.0449 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.90
Blueberry
#464196
ΔE00 6.32
Darkslateblue
#483D8B
ΔE00 6.54
Darkish Blue
#014182
ΔE00 7.22
Cobalt (survey)
#1E488F
ΔE00 7.41
Marine
#042E60
ΔE00 7.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F338A #8A761F
analogous
#1F688A #1F338A #401F8A
triadic
#1F338A #8A1F33 #338A1F
tetradic
#1F338A #8A1F68 #8A761F #1F8A40
square
#1F338A #8A1F68 #8A761F #1F8A40
split-complementary
#1F338A #8A401F #688A1F
monochromatic
#090E26 #142158 #1F338A #2A45BC #4C66D7
Accessibility & contrast
On white
11.06
#1F338A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#1F338A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F338A
11.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F338A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F338A | 1.00 | 11.06 | 1.90 | 11.06 |
| #FFFFFF | 11.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #1f338a; /* rgb */ color: rgb(31, 51, 138); /* oklch */ color: oklch(36.5% 0.146 268.1);
Tailwind
colors: {
custom: {
50: '#6c6aad',
500: '#1f338a',
950: '#000000',
},
}SCSS
$custom: #1f338a; $custom-light: #6c6aad; $custom-dark: #000000;
JSON
{
"hex": "#1f338a",
"rgb": {
"r": 31,
"g": 51,
"b": 138
},
"hsl": {
"h": 228.785,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.36514,
"c": 0.1465,
"h": 268.1
},
"luminance": 0.04494
}Semantic roles & 50–950 ramp
primary
#1F338A
secondary
#BAA54B
accent
#C841E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F