#1F118C#1F118C
#1F118C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.183 H 273.3°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).
Color values
| HEX | #1F118C |
|---|---|
| RGB | rgb(31, 17, 140) |
| HSL | hsl(247, 78%, 31%) |
| HSV | hsv(247, 88%, 55%) |
| CMYK | cmyk(77.9%, 87.9%, 0%, 45.1%) |
| CIE-LAB | lab(18.30, 45.53, -63.36) |
| CIE-LCH | lch(18.30, 78.02, 305.70°) |
| OKLab | oklab(31.62% 0.0106 -0.1832) |
| OKLCH | oklch(31.62% 0.183 273.3) |
| XYZ | xyz(5.4976, 2.5851, 25.0151) |
| Luminance | 0.0259 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.88
Darkblue
#00008B
ΔE00 2.81
Navy
#000080
ΔE00 3.58
Cobalt Blue
#030AA7
ΔE00 3.65
Indigo (survey)
#380282
ΔE00 3.89
Royal Blue (survey)
#0504AA
ΔE00 4.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F118C #7E8C11
analogous
#11408C #1F118C #5C118C
triadic
#1F118C #8C1F11 #118C1F
tetradic
#1F118C #8C1140 #7E8C11 #118C5C
square
#1F118C #8C1140 #7E8C11 #118C5C
split-complementary
#1F118C #8C5C11 #408C11
monochromatic
#07041F #130A55 #1F118C #2B18C3 #4631E6
Accessibility & contrast
On white
13.84
#1F118C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#1F118C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F118C
13.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F118C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F118C | 1.00 | 13.84 | 1.52 | 13.84 |
| #FFFFFF | 13.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00328F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #1f118c; /* rgb */ color: rgb(31, 17, 140); /* oklch */ color: oklch(31.6% 0.183 273.3);
Tailwind
colors: {
custom: {
50: '#7055af',
500: '#1f118c',
950: '#000000',
},
}SCSS
$custom: #1f118c; $custom-light: #7055af; $custom-dark: #000000;
JSON
{
"hex": "#1f118c",
"rgb": {
"r": 31,
"g": 17,
"b": 140
},
"hsl": {
"h": 246.829,
"s": 78.344,
"l": 30.784
},
"oklch": {
"l": 0.31616,
"c": 0.18348,
"h": 273.3
},
"luminance": 0.02586
}Semantic roles & 50–950 ramp
primary
#1F118C
secondary
#B1C138
accent
#F533DF
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880