#1F4FA4#1F4FA4

#1F4FA4 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.6% C 0.147 H 260.9°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#1F4FA4
RGBrgb(31, 79, 164)
HSLhsl(218, 68%, 38%)
HSVhsv(218, 81%, 64%)
CMYKcmyk(81.1%, 51.8%, 0%, 35.7%)
CIE-LABlab(35.13, 16.13, -50.45)
CIE-LCHlch(35.13, 52.96, 287.73°)
OKLaboklab(44.61% -0.0234 -0.1453)
OKLCHoklch(44.61% 0.147 260.9)
XYZxyz(10.0595, 8.5624, 36.2373)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4FA4 #A4741F
analogous
#1F91A4 #1F4FA4 #321FA4
triadic
#1F4FA4 #A41F4F #4FA41F
tetradic
#1F4FA4 #A41F91 #A4741F #1FA432
square
#1F4FA4 #A41F91 #A4741F #1FA432
split-complementary
#1F4FA4 #A4321F #91A41F
monochromatic
#0C1D3D #153671 #1F4FA4 #2A68D7 #5D8CE0

Accessibility & contrast

On white

7.74
#1F4FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#1F4FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4FA4
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4FA4#FFFFFF#000000##FFFFFF
##1F4FA41.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1759A7
Deuteranopia (green-blind)
#004DA2
Tritanopia (blue-blind)
#006472
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #1f4fa4;
/* rgb */ color: rgb(31, 79, 164);
/* oklch */ color: oklch(44.6% 0.147 260.9);
Tailwind
colors: {
  custom: {
    50: '#717fc0',
    500: '#1f4fa4',
    950: '#000000',
  },
}
SCSS
$custom: #1f4fa4;
$custom-light: #717fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4fa4",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 164
  },
  "hsl": {
    "h": 218.346,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.44613,
    "c": 0.14717,
    "h": 260.9
  },
  "luminance": 0.08564
}

Semantic roles & 50–950 ramp

primary
#1F4FA4
secondary
#C59E5A
accent
#AC3DEB
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F4FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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