#1F4EA8#1F4EA8

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

Color values

HEX#1F4EA8
RGBrgb(31, 78, 168)
HSLhsl(219, 69%, 39%)
HSVhsv(219, 82%, 66%)
CMYKcmyk(81.5%, 53.6%, 0%, 34.1%)
CIE-LABlab(35.13, 18.39, -52.83)
CIE-LCHlch(35.13, 55.94, 289.20°)
OKLaboklab(44.71% -0.0222 -0.1523)
OKLCHoklch(44.71% 0.154 261.7)
XYZxyz(10.3548, 8.5660, 38.1459)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4EA8 #A8791F
analogous
#1F93A8 #1F4EA8 #351FA8
triadic
#1F4EA8 #A81F4E #4EA81F
tetradic
#1F4EA8 #A81F93 #A8791F #1FA835
square
#1F4EA8 #A81F93 #A8791F #1FA835
split-complementary
#1F4EA8 #A8351F #93A81F
monochromatic
#0C1E41 #153674 #1F4EA8 #2C67D8 #608CE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F4EA8#FFFFFF#000000##FFFFFF
##1F4EA81.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)
#0759AB
Deuteranopia (green-blind)
#004DA6
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #1f4ea8;
/* rgb */ color: rgb(31, 78, 168);
/* oklch */ color: oklch(44.7% 0.154 261.7);
Tailwind
colors: {
  custom: {
    50: '#727ec2',
    500: '#1f4ea8',
    950: '#000000',
  },
}
SCSS
$custom: #1f4ea8;
$custom-light: #727ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4ea8",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 168
  },
  "hsl": {
    "h": 219.416,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44711,
    "c": 0.15392,
    "h": 261.7
  },
  "luminance": 0.08567
}

Semantic roles & 50–950 ramp

primary
#1F4EA8
secondary
#C6A25D
accent
#AF3CEC
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F4EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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