#1F4EA0#1F4EA0

#1F4EA0 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.1% C 0.143 H 260.7°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#1F4EA0
RGBrgb(31, 78, 160)
HSLhsl(218, 68%, 37%)
HSVhsv(218, 81%, 63%)
CMYKcmyk(80.6%, 51.2%, 0%, 37.3%)
CIE-LABlab(34.55, 15.21, -48.98)
CIE-LCHlch(34.55, 51.29, 287.25°)
OKLaboklab(44.08% -0.0231 -0.141)
OKLCHoklch(44.08% 0.143 260.7)
XYZxyz(9.6323, 8.2770, 34.3408)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4EA0 #A0711F
analogous
#1F8EA0 #1F4EA0 #311FA0
triadic
#1F4EA0 #A01F4E #4EA01F
tetradic
#1F4EA0 #A01F8E #A0711F #1FA031
square
#1F4EA0 #A01F8E #A0711F #1FA031
split-complementary
#1F4EA0 #A0311F #8EA01F
monochromatic
#0B1C39 #15356D #1F4EA0 #2967D3 #5A8BDF

Accessibility & contrast

On white

7.91
#1F4EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4EA0
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4EA0#FFFFFF#000000##FFFFFF
##1F4EA01.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A57A3
Deuteranopia (green-blind)
#004C9E
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f4ea0;
/* rgb */ color: rgb(31, 78, 160);
/* oklch */ color: oklch(44.1% 0.143 260.7);
Tailwind
colors: {
  custom: {
    50: '#707ebd',
    500: '#1f4ea0',
    950: '#000000',
  },
}
SCSS
$custom: #1f4ea0;
$custom-light: #707ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4ea0",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 160
  },
  "hsl": {
    "h": 218.14,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.44083,
    "c": 0.14288,
    "h": 260.7
  },
  "luminance": 0.08278
}

Semantic roles & 50–950 ramp

primary
#1F4EA0
secondary
#C39C58
accent
#AB3DEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F4EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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