#1F4FA7#1F4FA7

#1F4FA7 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.8% C 0.151 H 261.3°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#1F4FA7
RGBrgb(31, 79, 167)
HSLhsl(219, 69%, 39%)
HSVhsv(219, 81%, 65%)
CMYKcmyk(81.4%, 52.7%, 0%, 34.5%)
CIE-LABlab(35.35, 17.32, -51.89)
CIE-LCHlch(35.35, 54.71, 288.46°)
OKLaboklab(44.85% -0.023 -0.1495)
OKLCHoklch(44.85% 0.151 261.3)
XYZxyz(10.3336, 8.6721, 37.6810)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4FA7 #A7771F
analogous
#1F93A7 #1F4FA7 #331FA7
triadic
#1F4FA7 #A71F4F #4FA71F
tetradic
#1F4FA7 #A71F93 #A7771F #1FA733
square
#1F4FA7 #A71F93 #A7771F #1FA733
split-complementary
#1F4FA7 #A7331F #93A71F
monochromatic
#0C1E40 #153773 #1F4FA7 #2B68D8 #5F8DE1

Accessibility & contrast

On white

7.68
#1F4FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#1F4FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4FA7
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4FA7#FFFFFF#000000##FFFFFF
##1F4FA71.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105AAA
Deuteranopia (green-blind)
#004DA5
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #1f4fa7;
/* rgb */ color: rgb(31, 79, 167);
/* oklch */ color: oklch(44.8% 0.151 261.3);
Tailwind
colors: {
  custom: {
    50: '#727fc2',
    500: '#1f4fa7',
    950: '#000000',
  },
}
SCSS
$custom: #1f4fa7;
$custom-light: #727fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4fa7",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 167
  },
  "hsl": {
    "h": 218.824,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.44848,
    "c": 0.1513,
    "h": 261.3
  },
  "luminance": 0.08673
}

Semantic roles & 50–950 ramp

primary
#1F4FA7
secondary
#C6A05C
accent
#AE3CEC
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F4FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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