#1F338E#1F338E
#1F338E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.152 H 268.2°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).
Color values
| HEX | #1F338E |
|---|---|
| RGB | rgb(31, 51, 142) |
| HSL | hsl(229, 64%, 34%) |
| HSV | hsv(229, 78%, 56%) |
| CMYK | cmyk(78.2%, 64.1%, 0%, 44.3%) |
| CIE-LAB | lab(25.60, 26.52, -52.56) |
| CIE-LCH | lch(25.60, 58.87, 296.78°) |
| OKLab | oklab(36.89% -0.0048 -0.152) |
| OKLCH | oklch(36.89% 0.152 268.2) |
| XYZ | xyz(6.6297, 4.6112, 26.1266) |
| Luminance | 0.0461 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.31
Blueberry
#464196
ΔE00 6.16
Darkslateblue
#483D8B
ΔE00 6.52
Darkish Blue
#014182
ΔE00 7.48
Cobalt (survey)
#1E488F
ΔE00 7.52
Royal
#0C1793
ΔE00 7.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F338E #8E7A1F
analogous
#1F6B8E #1F338E #431F8E
triadic
#1F338E #8E1F33 #338E1F
tetradic
#1F338E #8E1F6B #8E7A1F #1F8E43
square
#1F338E #8E1F6B #8E7A1F #1F8E43
split-complementary
#1F338E #8E431F #6B8E1F
monochromatic
#090F2A #14215C #1F338E #2A45C0 #4F68D9
Accessibility & contrast
On white
10.92
#1F338E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#1F338E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F338E
10.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F338E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F338E | 1.00 | 10.92 | 1.92 | 10.92 |
| #FFFFFF | 10.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #1f338e; /* rgb */ color: rgb(31, 51, 142); /* oklch */ color: oklch(36.9% 0.152 268.2);
Tailwind
colors: {
custom: {
50: '#6d6ab0',
500: '#1f338e',
950: '#000000',
},
}SCSS
$custom: #1f338e; $custom-light: #6d6ab0; $custom-dark: #000000;
JSON
{
"hex": "#1f338e",
"rgb": {
"r": 31,
"g": 51,
"b": 142
},
"hsl": {
"h": 229.189,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.3689,
"c": 0.15206,
"h": 268.2
},
"luminance": 0.04612
}Semantic roles & 50–950 ramp
primary
#1F338E
secondary
#BBA84D
accent
#C941E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80