#1F4F98#1F4F98
#1F4F98 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.7% C 0.130 H 258.9°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4F98 |
|---|---|
| RGB | rgb(31, 79, 152) |
| HSL | hsl(216, 66%, 36%) |
| HSV | hsv(216, 80%, 60%) |
| CMYK | cmyk(79.6%, 48%, 0%, 40.4%) |
| CIE-LAB | lab(34.29, 11.35, -44.57) |
| CIE-LCH | lch(34.29, 46.00, 284.28°) |
| OKLab | oklab(43.71% -0.0252 -0.128) |
| OKLCH | oklch(43.71% 0.13 258.9) |
| XYZ | xyz(9.0265, 8.1492, 30.7969) |
| Luminance | 0.0815 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dusk Blue
#26538D
ΔE00 2.09
Cobalt (survey)
#1E488F
ΔE00 2.50
Light Navy
#155084
ΔE00 3.78
Cobalt
#0047AB
ΔE00 3.82
Sapphire
#0F52BA
ΔE00 4.29
Light Navy Blue
#2E5A88
ΔE00 4.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4F98 #98681F
analogous
#1F8B98 #1F4F98 #2B1F98
triadic
#1F4F98 #981F4F #4F981F
tetradic
#1F4F98 #981F8B #98681F #1F982B
square
#1F4F98 #981F8B #98681F #1F982B
split-complementary
#1F4F98 #982B1F #8B981F
monochromatic
#0A1A32 #153565 #1F4F98 #2969CB #558BDC
Accessibility & contrast
On white
7.98
#1F4F98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.63
#1F4F98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4F98
7.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4F98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4F98 | 1.00 | 7.98 | 2.63 | 7.98 |
| #FFFFFF | 7.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#27579B
Deuteranopia (green-blind)
#024B97
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #1f4f98; /* rgb */ color: rgb(31, 79, 152); /* oklch */ color: oklch(43.7% 0.130 258.9);
Tailwind
colors: {
custom: {
50: '#6e7fb7',
500: '#1f4f98',
950: '#000000',
},
}SCSS
$custom: #1f4f98; $custom-light: #6e7fb7; $custom-dark: #000000;
JSON
{
"hex": "#1f4f98",
"rgb": {
"r": 31,
"g": 79,
"b": 152
},
"hsl": {
"h": 216.198,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.43705,
"c": 0.13046,
"h": 258.9
},
"luminance": 0.0815
}Semantic roles & 50–950 ramp
primary
#1F4F98
secondary
#C09553
accent
#A53FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80