#1F4EA7#1F4EA7

#1F4EA7 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.6% C 0.153 H 261.6°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#1F4EA7
RGBrgb(31, 78, 167)
HSLhsl(219, 69%, 39%)
HSVhsv(219, 81%, 65%)
CMYKcmyk(81.4%, 53.3%, 0%, 34.5%)
CIE-LABlab(35.06, 18.00, -52.35)
CIE-LCHlch(35.06, 55.36, 288.97°)
OKLaboklab(44.63% -0.0223 -0.1509)
OKLCHoklch(44.63% 0.153 261.6)
XYZxyz(10.2620, 8.5289, 37.6571)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4EA7 #A7781F
analogous
#1F92A7 #1F4EA7 #341FA7
triadic
#1F4EA7 #A71F4E #4EA71F
tetradic
#1F4EA7 #A71F92 #A7781F #1FA734
square
#1F4EA7 #A71F92 #A7781F #1FA734
split-complementary
#1F4EA7 #A7341F #92A71F
monochromatic
#0C1E40 #153673 #1F4EA7 #2B67D8 #5F8CE1

Accessibility & contrast

On white

7.76
#1F4EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4EA7
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4EA7#FFFFFF#000000##FFFFFF
##1F4EA71.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A59AA
Deuteranopia (green-blind)
#004DA5
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f4ea7;
/* rgb */ color: rgb(31, 78, 167);
/* oklch */ color: oklch(44.6% 0.153 261.6);
Tailwind
colors: {
  custom: {
    50: '#727ec2',
    500: '#1f4ea7',
    950: '#000000',
  },
}
SCSS
$custom: #1f4ea7;
$custom-light: #727ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4ea7",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 167
  },
  "hsl": {
    "h": 219.265,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.44632,
    "c": 0.15256,
    "h": 261.6
  },
  "luminance": 0.0853
}

Semantic roles & 50–950 ramp

primary
#1F4EA7
secondary
#C6A15C
accent
#AF3CEC
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F4EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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