#1F4AA4#1F4AA4

#1F4AA4 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.5% C 0.153 H 262.6°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#1F4AA4
RGBrgb(31, 74, 164)
HSLhsl(221, 68%, 38%)
HSVhsv(221, 81%, 64%)
CMYKcmyk(81.1%, 54.9%, 0%, 35.7%)
CIE-LABlab(33.71, 19.50, -52.75)
CIE-LCHlch(33.71, 56.24, 290.29°)
OKLaboklab(43.53% -0.0197 -0.1522)
OKLCHoklch(43.53% 0.153 262.6)
XYZxyz(9.7123, 7.8680, 36.1216)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4AA4 #A4791F
analogous
#1F8CA4 #1F4AA4 #371FA4
triadic
#1F4AA4 #A41F4A #4AA41F
tetradic
#1F4AA4 #A41F8C #A4791F #1FA437
square
#1F4AA4 #A41F8C #A4791F #1FA437
split-complementary
#1F4AA4 #A4371F #8CA41F
monochromatic
#0C1C3D #153371 #1F4AA4 #2A62D7 #5D87E0

Accessibility & contrast

On white

8.16
#1F4AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#1F4AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4AA4
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4AA4#FFFFFF#000000##FFFFFF
##1F4AA41.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A7
Deuteranopia (green-blind)
#0049A2
Tritanopia (blue-blind)
#00606F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4aa4;
/* rgb */ color: rgb(31, 74, 164);
/* oklch */ color: oklch(43.5% 0.153 262.6);
Tailwind
colors: {
  custom: {
    50: '#717bc0',
    500: '#1f4aa4',
    950: '#000000',
  },
}
SCSS
$custom: #1f4aa4;
$custom-light: #717bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4aa4",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 164
  },
  "hsl": {
    "h": 220.602,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.43532,
    "c": 0.15344,
    "h": 262.6
  },
  "luminance": 0.07869
}

Semantic roles & 50–950 ramp

primary
#1F4AA4
secondary
#C5A25A
accent
#B33DEB
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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