#1F4DA8#1F4DA8

#1F4DA8 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.5% C 0.155 H 262.1°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#1F4DA8
RGBrgb(31, 77, 168)
HSLhsl(220, 69%, 39%)
HSVhsv(220, 82%, 66%)
CMYKcmyk(81.5%, 54.2%, 0%, 34.1%)
CIE-LABlab(34.85, 19.07, -53.29)
CIE-LCHlch(34.85, 56.59, 289.69°)
OKLaboklab(44.5% -0.0215 -0.1537)
OKLCHoklch(44.5% 0.155 262.1)
XYZxyz(10.2843, 8.4250, 38.1224)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4DA8 #A87A1F
analogous
#1F92A8 #1F4DA8 #361FA8
triadic
#1F4DA8 #A81F4D #4DA81F
tetradic
#1F4DA8 #A81F92 #A87A1F #1FA836
square
#1F4DA8 #A81F92 #A87A1F #1FA836
split-complementary
#1F4DA8 #A8361F #92A81F
monochromatic
#0C1E41 #153574 #1F4DA8 #2C66D8 #608BE2

Accessibility & contrast

On white

7.82
#1F4DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#1F4DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4DA8
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4DA8#FFFFFF#000000##FFFFFF
##1F4DA81.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AB
Deuteranopia (green-blind)
#004CA6
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f4da8;
/* rgb */ color: rgb(31, 77, 168);
/* oklch */ color: oklch(44.5% 0.155 262.1);
Tailwind
colors: {
  custom: {
    50: '#727ec3',
    500: '#1f4da8',
    950: '#000000',
  },
}
SCSS
$custom: #1f4da8;
$custom-light: #727ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4da8",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 168
  },
  "hsl": {
    "h": 219.854,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44497,
    "c": 0.15517,
    "h": 262.1
  },
  "luminance": 0.08426
}

Semantic roles & 50–950 ramp

primary
#1F4DA8
secondary
#C6A35D
accent
#B13CEC
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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