#1F4797#1F4797

#1F4797 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.8% C 0.139 H 262.2°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#1F4797
RGBrgb(31, 71, 151)
HSLhsl(220, 66%, 36%)
HSVhsv(220, 79%, 59%)
CMYKcmyk(79.5%, 53%, 0%, 40.8%)
CIE-LABlab(31.88, 16.36, -47.86)
CIE-LCHlch(31.88, 50.58, 288.88°)
OKLaboklab(41.84% -0.0188 -0.1378)
OKLCHoklch(41.84% 0.139 262.2)
XYZxyz(8.4022, 7.0312, 30.1865)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4797 #976F1F
analogous
#1F8397 #1F4797 #331F97
triadic
#1F4797 #971F47 #47971F
tetradic
#1F4797 #971F83 #976F1F #1F9733
square
#1F4797 #971F83 #976F1F #1F9733
split-complementary
#1F4797 #97331F #83971F
monochromatic
#0A1731 #152F64 #1F4797 #295FCA #5482DC

Accessibility & contrast

On white

8.73
#1F4797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#1F4797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4797
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4797#FFFFFF#000000##FFFFFF
##1F47971.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10519A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f4797;
/* rgb */ color: rgb(31, 71, 151);
/* oklch */ color: oklch(41.8% 0.139 262.2);
Tailwind
colors: {
  custom: {
    50: '#6e79b6',
    500: '#1f4797',
    950: '#000000',
  },
}
SCSS
$custom: #1f4797;
$custom-light: #6e79b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4797",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 220,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41835,
    "c": 0.13913,
    "h": 262.2
  },
  "luminance": 0.07032
}

Semantic roles & 50–950 ramp

primary
#1F4797
secondary
#BF9B52
accent
#B03FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4797

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

Preview Lab → · Contrast checker → · Palette generator →

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