#1F2277#1F2277
#1F2277 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.141 H 273.3°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2277 |
|---|---|
| RGB | rgb(31, 34, 119) |
| HSL | hsl(238, 59%, 29%) |
| HSV | hsv(238, 74%, 47%) |
| CMYK | cmyk(73.9%, 71.4%, 0%, 53.3%) |
| CIE-LAB | lab(19.08, 29.20, -48.76) |
| CIE-LCH | lch(19.08, 56.83, 300.91°) |
| OKLab | oklab(31.46% 0.008 -0.141) |
| OKLCH | oklch(31.46% 0.141 273.3) |
| XYZ | xyz(4.4658, 2.7668, 17.7479) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.46
Royal
#0C1793
ΔE00 5.34
Dark Royal Blue
#02066F
ΔE00 6.45
Darkblue (survey)
#030764
ΔE00 6.73
Deep Blue
#040273
ΔE00 7.03
Navy
#000080
ΔE00 7.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2277 #77741F
analogous
#1F4E77 #1F2277 #481F77
triadic
#1F2277 #771F22 #22771F
tetradic
#1F2277 #771F4E #77741F #1F7748
square
#1F2277 #771F4E #77741F #1F7748
split-complementary
#1F2277 #77481F #4E771F
monochromatic
#060718 #121446 #1F2277 #2C30A8 #4347CE
Accessibility & contrast
On white
13.52
#1F2277 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#1F2277 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2277
13.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2277 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2277 | 1.00 | 13.52 | 1.55 | 13.52 |
| #FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002A75
Tritanopia (blue-blind)
#003949
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #1f2277; /* rgb */ color: rgb(31, 34, 119); /* oklch */ color: oklch(31.5% 0.141 273.3);
Tailwind
colors: {
custom: {
50: '#695d9f',
500: '#1f2277',
950: '#000000',
},
}SCSS
$custom: #1f2277; $custom-light: #695d9f; $custom-dark: #000000;
JSON
{
"hex": "#1f2277",
"rgb": {
"r": 31,
"g": 34,
"b": 119
},
"hsl": {
"h": 237.955,
"s": 58.667,
"l": 29.412
},
"oklch": {
"l": 0.31455,
"c": 0.14119,
"h": 273.3
},
"luminance": 0.02767
}Semantic roles & 50–950 ramp
primary
#1F2277
secondary
#ABA747
accent
#DD46E2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E