#1F4DA4#1F4DA4

#1F4DA4 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.2% C 0.150 H 261.6°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#1F4DA4
RGBrgb(31, 77, 164)
HSLhsl(219, 68%, 38%)
HSVhsv(219, 81%, 64%)
CMYKcmyk(81.1%, 53%, 0%, 35.7%)
CIE-LABlab(34.56, 17.48, -51.37)
CIE-LCHlch(34.56, 54.27, 288.79°)
OKLaboklab(44.18% -0.0219 -0.1481)
OKLCHoklch(44.18% 0.15 261.6)
XYZxyz(9.9174, 8.2782, 36.1899)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4DA4 #A4761F
analogous
#1F8FA4 #1F4DA4 #331FA4
triadic
#1F4DA4 #A41F4D #4DA41F
tetradic
#1F4DA4 #A41F8F #A4761F #1FA433
square
#1F4DA4 #A41F8F #A4761F #1FA433
split-complementary
#1F4DA4 #A4331F #8FA41F
monochromatic
#0C1D3D #153571 #1F4DA4 #2A65D7 #5D8AE0

Accessibility & contrast

On white

7.91
#1F4DA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#1F4DA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4DA4
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4DA4#FFFFFF#000000##FFFFFF
##1F4DA41.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D58A7
Deuteranopia (green-blind)
#004CA2
Tritanopia (blue-blind)
#006271
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f4da4;
/* rgb */ color: rgb(31, 77, 164);
/* oklch */ color: oklch(44.2% 0.150 261.6);
Tailwind
colors: {
  custom: {
    50: '#717ec0',
    500: '#1f4da4',
    950: '#000000',
  },
}
SCSS
$custom: #1f4da4;
$custom-light: #717ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4da4",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 164
  },
  "hsl": {
    "h": 219.248,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.44177,
    "c": 0.14967,
    "h": 261.6
  },
  "luminance": 0.08279
}

Semantic roles & 50–950 ramp

primary
#1F4DA4
secondary
#C5A05A
accent
#AF3DEB
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4DA4

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#1F4DA4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva