#1F4DA0#1F4DA0

#1F4DA0 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.9% C 0.144 H 261.1°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#1F4DA0
RGBrgb(31, 77, 160)
HSLhsl(219, 68%, 37%)
HSVhsv(219, 81%, 63%)
CMYKcmyk(80.6%, 51.9%, 0%, 37.3%)
CIE-LABlab(34.26, 15.89, -49.44)
CIE-LCHlch(34.26, 51.93, 287.81°)
OKLaboklab(43.86% -0.0224 -0.1424)
OKLCHoklch(43.86% 0.144 261.1)
XYZxyz(9.5618, 8.1360, 34.3173)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4DA0 #A0721F
analogous
#1F8DA0 #1F4DA0 #321FA0
triadic
#1F4DA0 #A01F4D #4DA01F
tetradic
#1F4DA0 #A01F8D #A0721F #1FA032
square
#1F4DA0 #A01F8D #A0721F #1FA032
split-complementary
#1F4DA0 #A0321F #8DA01F
monochromatic
#0B1C39 #15346D #1F4DA0 #2966D3 #5A8ADF

Accessibility & contrast

On white

7.99
#1F4DA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#1F4DA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4DA0
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4DA0#FFFFFF#000000##FFFFFF
##1F4DA01.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1657A3
Deuteranopia (green-blind)
#004B9E
Tritanopia (blue-blind)
#00616F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f4da0;
/* rgb */ color: rgb(31, 77, 160);
/* oklch */ color: oklch(43.9% 0.144 261.1);
Tailwind
colors: {
  custom: {
    50: '#707ebd',
    500: '#1f4da0',
    950: '#000000',
  },
}
SCSS
$custom: #1f4da0;
$custom-light: #707ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4da0",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 160
  },
  "hsl": {
    "h": 218.605,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.43863,
    "c": 0.14413,
    "h": 261.1
  },
  "luminance": 0.08137
}

Semantic roles & 50–950 ramp

primary
#1F4DA0
secondary
#C39D58
accent
#AD3DEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4DA0

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

Preview Lab → · Contrast checker → · Palette generator →

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