#1F338F#1F338F
#1F338F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.153 H 268.2°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).
Color values
| HEX | #1F338F |
|---|---|
| RGB | rgb(31, 51, 143) |
| HSL | hsl(229, 64%, 34%) |
| HSV | hsv(229, 78%, 56%) |
| CMYK | cmyk(78.3%, 64.3%, 0%, 43.9%) |
| CIE-LAB | lab(25.69, 26.91, -53.03) |
| CIE-LCH | lch(25.69, 59.47, 296.90°) |
| OKLab | oklab(36.98% -0.0049 -0.1534) |
| OKLCH | oklch(36.98% 0.153 268.2) |
| XYZ | xyz(6.7051, 4.6414, 26.5238) |
| Luminance | 0.0464 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.16
Blueberry
#464196
ΔE00 6.13
Darkslateblue
#483D8B
ΔE00 6.53
Royal
#0C1793
ΔE00 7.47
Cobalt
#0047AB
ΔE00 7.49
Darkish Blue
#014182
ΔE00 7.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F338F #8F7B1F
analogous
#1F6B8F #1F338F #431F8F
triadic
#1F338F #8F1F33 #338F1F
tetradic
#1F338F #8F1F6B #8F7B1F #1F8F43
square
#1F338F #8F1F6B #8F7B1F #1F8F43
split-complementary
#1F338F #8F431F #6B8F1F
monochromatic
#090F2A #14215D #1F338F #2A45C1 #4F68D9
Accessibility & contrast
On white
10.89
#1F338F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#1F338F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F338F
10.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F338F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F338F | 1.00 | 10.89 | 1.93 | 10.89 |
| #FFFFFF | 10.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #1f338f; /* rgb */ color: rgb(31, 51, 143); /* oklch */ color: oklch(37.0% 0.153 268.2);
Tailwind
colors: {
custom: {
50: '#6e6ab1',
500: '#1f338f',
950: '#000000',
},
}SCSS
$custom: #1f338f; $custom-light: #6e6ab1; $custom-dark: #000000;
JSON
{
"hex": "#1f338f",
"rgb": {
"r": 31,
"g": 51,
"b": 143
},
"hsl": {
"h": 229.286,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.36984,
"c": 0.15344,
"h": 268.2
},
"luminance": 0.04642
}Semantic roles & 50–950 ramp
primary
#1F338F
secondary
#BCA84E
accent
#CA40E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80