#1F4EA4#1F4EA4

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

Color values

HEX#1F4EA4
RGBrgb(31, 78, 164)
HSLhsl(219, 68%, 38%)
HSVhsv(219, 81%, 64%)
CMYKcmyk(81.1%, 52.4%, 0%, 35.7%)
CIE-LABlab(34.84, 16.80, -50.91)
CIE-LCHlch(34.84, 53.61, 288.27°)
OKLaboklab(44.4% -0.0226 -0.1467)
OKLCHoklch(44.4% 0.148 261.2)
XYZxyz(9.9879, 8.4192, 36.2134)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4EA4 #A4751F
analogous
#1F90A4 #1F4EA4 #321FA4
triadic
#1F4EA4 #A41F4E #4EA41F
tetradic
#1F4EA4 #A41F90 #A4751F #1FA432
square
#1F4EA4 #A41F90 #A4751F #1FA432
split-complementary
#1F4EA4 #A4321F #90A41F
monochromatic
#0C1D3D #153671 #1F4EA4 #2A67D7 #5D8BE0

Accessibility & contrast

On white

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

On black

2.68
#1F4EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F4EA4#FFFFFF#000000##FFFFFF
##1F4EA41.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1258A7
Deuteranopia (green-blind)
#004CA2
Tritanopia (blue-blind)
#006371
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f4ea4;
/* rgb */ color: rgb(31, 78, 164);
/* oklch */ color: oklch(44.4% 0.148 261.2);
Tailwind
colors: {
  custom: {
    50: '#717ec0',
    500: '#1f4ea4',
    950: '#000000',
  },
}
SCSS
$custom: #1f4ea4;
$custom-light: #717ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4ea4",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 164
  },
  "hsl": {
    "h": 218.797,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.44395,
    "c": 0.14842,
    "h": 261.2
  },
  "luminance": 0.0842
}

Semantic roles & 50–950 ramp

primary
#1F4EA4
secondary
#C59F5A
accent
#AD3DEB
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F4EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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