#1F4DA1#1F4DA1

#1F4DA1 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.9% C 0.146 H 261.2°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#1F4DA1
RGBrgb(31, 77, 161)
HSLhsl(219, 68%, 38%)
HSVhsv(219, 81%, 63%)
CMYKcmyk(80.7%, 52.2%, 0%, 36.9%)
CIE-LABlab(34.34, 16.28, -49.93)
CIE-LCHlch(34.34, 52.52, 288.06°)
OKLaboklab(43.94% -0.0222 -0.1438)
OKLCHoklch(43.94% 0.146 261.2)
XYZxyz(9.6496, 8.1711, 34.7799)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4DA1 #A1731F
analogous
#1F8EA1 #1F4DA1 #321FA1
triadic
#1F4DA1 #A11F4D #4DA11F
tetradic
#1F4DA1 #A11F8E #A1731F #1FA132
square
#1F4DA1 #A11F8E #A1731F #1FA132
split-complementary
#1F4DA1 #A1321F #8EA11F
monochromatic
#0B1C3A #15346E #1F4DA1 #2966D4 #5B8ADF

Accessibility & contrast

On white

7.97
#1F4DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4DA1
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4DA1#FFFFFF#000000##FFFFFF
##1F4DA11.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1457A4
Deuteranopia (green-blind)
#004B9F
Tritanopia (blue-blind)
#00616F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f4da1;
/* rgb */ color: rgb(31, 77, 161);
/* oklch */ color: oklch(43.9% 0.146 261.2);
Tailwind
colors: {
  custom: {
    50: '#707ebd',
    500: '#1f4da1',
    950: '#000000',
  },
}
SCSS
$custom: #1f4da1;
$custom-light: #707ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4da1",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 161
  },
  "hsl": {
    "h": 218.769,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.43941,
    "c": 0.14552,
    "h": 261.2
  },
  "luminance": 0.08172
}

Semantic roles & 50–950 ramp

primary
#1F4DA1
secondary
#C49E58
accent
#AD3DEB
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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