#1F4EA1#1F4EA1

#1F4EA1 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.2% C 0.144 H 260.8°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#1F4EA1
RGBrgb(31, 78, 161)
HSLhsl(218, 68%, 38%)
HSVhsv(218, 81%, 63%)
CMYKcmyk(80.7%, 51.6%, 0%, 36.9%)
CIE-LABlab(34.62, 15.61, -49.46)
CIE-LCHlch(34.62, 51.87, 287.52°)
OKLaboklab(44.16% -0.023 -0.1424)
OKLCHoklch(44.16% 0.144 260.8)
XYZxyz(9.7202, 8.3121, 34.8034)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4EA1 #A1721F
analogous
#1F8FA1 #1F4EA1 #311FA1
triadic
#1F4EA1 #A11F4E #4EA11F
tetradic
#1F4EA1 #A11F8F #A1721F #1FA131
square
#1F4EA1 #A11F8F #A1721F #1FA131
split-complementary
#1F4EA1 #A1311F #8FA11F
monochromatic
#0B1C3A #15356E #1F4EA1 #2967D4 #5B8BDF

Accessibility & contrast

On white

7.89
#1F4EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#1F4EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4EA1
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4EA1#FFFFFF#000000##FFFFFF
##1F4EA11.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1858A4
Deuteranopia (green-blind)
#004C9F
Tritanopia (blue-blind)
#006270
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f4ea1;
/* rgb */ color: rgb(31, 78, 161);
/* oklch */ color: oklch(44.2% 0.144 260.8);
Tailwind
colors: {
  custom: {
    50: '#707ebd',
    500: '#1f4ea1',
    950: '#000000',
  },
}
SCSS
$custom: #1f4ea1;
$custom-light: #707ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4ea1",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 161
  },
  "hsl": {
    "h": 218.308,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.44161,
    "c": 0.14427,
    "h": 260.8
  },
  "luminance": 0.08313
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F4EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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