#1F4BA7#1F4BA7

#1F4BA7 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.0% C 0.156 H 262.6°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#1F4BA7
RGBrgb(31, 75, 167)
HSLhsl(221, 69%, 39%)
HSVhsv(221, 81%, 65%)
CMYKcmyk(81.4%, 55.1%, 0%, 34.5%)
CIE-LABlab(34.22, 20.02, -53.72)
CIE-LCHlch(34.22, 57.33, 290.44°)
OKLaboklab(43.99% -0.0201 -0.155)
OKLCHoklch(43.99% 0.156 262.6)
XYZxyz(10.0537, 8.1123, 37.5877)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4BA7 #A77B1F
analogous
#1F8FA7 #1F4BA7 #371FA7
triadic
#1F4BA7 #A71F4B #4BA71F
tetradic
#1F4BA7 #A71F8F #A77B1F #1FA737
square
#1F4BA7 #A71F8F #A77B1F #1FA737
split-complementary
#1F4BA7 #A7371F #8FA71F
monochromatic
#0C1D40 #153473 #1F4BA7 #2B63D8 #5F89E1

Accessibility & contrast

On white

8.01
#1F4BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#1F4BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4BA7
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4BA7#FFFFFF#000000##FFFFFF
##1F4BA71.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AA
Deuteranopia (green-blind)
#004BA5
Tritanopia (blue-blind)
#006271
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4ba7;
/* rgb */ color: rgb(31, 75, 167);
/* oklch */ color: oklch(44.0% 0.156 262.6);
Tailwind
colors: {
  custom: {
    50: '#727cc2',
    500: '#1f4ba7',
    950: '#000000',
  },
}
SCSS
$custom: #1f4ba7;
$custom-light: #727cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4ba7",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 167
  },
  "hsl": {
    "h": 220.588,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4399,
    "c": 0.15631,
    "h": 262.6
  },
  "luminance": 0.08113
}

Semantic roles & 50–950 ramp

primary
#1F4BA7
secondary
#C6A45C
accent
#B33CEC
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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