#1F339C#1F339C
#1F339C is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.2% C 0.171 H 268.2°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).
Color values
| HEX | #1F339C |
|---|---|
| RGB | rgb(31, 51, 156) |
| HSL | hsl(230, 67%, 37%) |
| HSV | hsv(230, 80%, 61%) |
| CMYK | cmyk(80.1%, 67.3%, 0%, 38.8%) |
| CIE-LAB | lab(26.90, 31.88, -59.03) |
| CIE-LCH | lch(26.90, 67.08, 298.37°) |
| OKLab | oklab(38.25% -0.0054 -0.1709) |
| OKLCH | oklch(38.25% 0.171 268.2) |
| XYZ | xyz(7.7476, 5.0584, 32.0141) |
| Luminance | 0.0506 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.42
Blueberry
#464196
ΔE00 6.06
Darkslateblue
#483D8B
ΔE00 6.88
Blue Blue
#2242C7
ΔE00 6.98
Royal
#0C1793
ΔE00 7.06
Cobalt
#0047AB
ΔE00 7.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F339C #9C881F
analogous
#1F729C #1F339C #4A1F9C
triadic
#1F339C #9C1F33 #339C1F
tetradic
#1F339C #9C1F72 #9C881F #1F9C4A
square
#1F339C #9C1F72 #9C881F #1F9C4A
split-complementary
#1F339C #9C4A1F #729C1F
monochromatic
#0B1236 #152269 #1F339C #2944CF #586DDE
Accessibility & contrast
On white
10.44
#1F339C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#1F339C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F339C
10.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F339C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F339C | 1.00 | 10.44 | 2.01 | 10.44 |
| #FFFFFF | 10.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #1f339c; /* rgb */ color: rgb(31, 51, 156); /* oklch */ color: oklch(38.2% 0.171 268.2);
Tailwind
colors: {
custom: {
50: '#716aba',
500: '#1f339c',
950: '#000000',
},
}SCSS
$custom: #1f339c; $custom-light: #716aba; $custom-dark: #000000;
JSON
{
"hex": "#1f339c",
"rgb": {
"r": 31,
"g": 51,
"b": 156
},
"hsl": {
"h": 230.4,
"s": 66.845,
"l": 36.667
},
"oklch": {
"l": 0.38247,
"c": 0.17098,
"h": 268.2
},
"luminance": 0.05059
}Semantic roles & 50–950 ramp
primary
#1F339C
secondary
#C1B055
accent
#CE3EEA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81