#1F4FA8#1F4FA8

#1F4FA8 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.9% C 0.153 H 261.4°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#1F4FA8
RGBrgb(31, 79, 168)
HSLhsl(219, 69%, 39%)
HSVhsv(219, 82%, 66%)
CMYKcmyk(81.5%, 53%, 0%, 34.1%)
CIE-LABlab(35.42, 17.72, -52.37)
CIE-LCHlch(35.42, 55.29, 288.69°)
OKLaboklab(44.93% -0.0229 -0.1509)
OKLCHoklch(44.93% 0.153 261.4)
XYZxyz(10.4264, 8.7092, 38.1697)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4FA8 #A8781F
analogous
#1F94A8 #1F4FA8 #341FA8
triadic
#1F4FA8 #A81F4F #4FA81F
tetradic
#1F4FA8 #A81F94 #A8781F #1FA834
square
#1F4FA8 #A81F94 #A8781F #1FA834
split-complementary
#1F4FA8 #A8341F #94A81F
monochromatic
#0C1E41 #153774 #1F4FA8 #2C68D8 #608DE2

Accessibility & contrast

On white

7.66
#1F4FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#1F4FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4FA8
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4FA8#FFFFFF#000000##FFFFFF
##1F4FA81.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5AAB
Deuteranopia (green-blind)
#004DA6
Tritanopia (blue-blind)
#006574
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #1f4fa8;
/* rgb */ color: rgb(31, 79, 168);
/* oklch */ color: oklch(44.9% 0.153 261.4);
Tailwind
colors: {
  custom: {
    50: '#727fc2',
    500: '#1f4fa8',
    950: '#000000',
  },
}
SCSS
$custom: #1f4fa8;
$custom-light: #727fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4fa8",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 168
  },
  "hsl": {
    "h": 218.978,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44927,
    "c": 0.15268,
    "h": 261.4
  },
  "luminance": 0.0871
}

Semantic roles & 50–950 ramp

primary
#1F4FA8
secondary
#C6A15D
accent
#AE3CEC
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F4FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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