#1F338C#1F338C
#1F338C is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.7% C 0.149 H 268.2°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).
Color values
| HEX | #1F338C |
|---|---|
| RGB | rgb(31, 51, 140) |
| HSL | hsl(229, 64%, 34%) |
| HSV | hsv(229, 78%, 55%) |
| CMYK | cmyk(77.9%, 63.6%, 0%, 45.1%) |
| CIE-LAB | lab(25.42, 25.75, -51.62) |
| CIE-LCH | lch(25.42, 57.68, 296.51°) |
| OKLab | oklab(36.7% -0.0048 -0.1492) |
| OKLCH | oklch(36.7% 0.149 268.2) |
| XYZ | xyz(6.4809, 4.5517, 25.3429) |
| Luminance | 0.0455 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.60
Blueberry
#464196
ΔE00 6.23
Darkslateblue
#483D8B
ΔE00 6.52
Darkish Blue
#014182
ΔE00 7.35
Cobalt (survey)
#1E488F
ΔE00 7.46
Cobalt
#0047AB
ΔE00 7.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F338C #8C781F
analogous
#1F698C #1F338C #411F8C
triadic
#1F338C #8C1F33 #338C1F
tetradic
#1F338C #8C1F69 #8C781F #1F8C41
square
#1F338C #8C1F69 #8C781F #1F8C41
split-complementary
#1F338C #8C411F #698C1F
monochromatic
#090E28 #14215A #1F338C #2A45BE #4E67D8
Accessibility & contrast
On white
10.99
#1F338C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#1F338C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F338C
10.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F338C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F338C | 1.00 | 10.99 | 1.91 | 10.99 |
| #FFFFFF | 10.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #1f338c; /* rgb */ color: rgb(31, 51, 140); /* oklch */ color: oklch(36.7% 0.149 268.2);
Tailwind
colors: {
custom: {
50: '#6d6aae',
500: '#1f338c',
950: '#000000',
},
}SCSS
$custom: #1f338c; $custom-light: #6d6aae; $custom-dark: #000000;
JSON
{
"hex": "#1f338c",
"rgb": {
"r": 31,
"g": 51,
"b": 140
},
"hsl": {
"h": 228.991,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.36701,
"c": 0.14929,
"h": 268.2
},
"luminance": 0.04552
}Semantic roles & 50–950 ramp
primary
#1F338C
secondary
#BBA64C
accent
#C841E7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F