#1F4D97#1F4D97

#1F4D97 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.2% C 0.132 H 259.6°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#1F4D97
RGBrgb(31, 77, 151)
HSLhsl(217, 66%, 36%)
HSVhsv(217, 79%, 59%)
CMYKcmyk(79.5%, 49%, 0%, 40.8%)
CIE-LABlab(33.63, 12.29, -45.03)
CIE-LCHlch(33.63, 46.68, 285.27°)
OKLaboklab(43.18% -0.0237 -0.1294)
OKLCHoklch(43.18% 0.132 259.6)
XYZxyz(8.8028, 7.8324, 30.3200)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D97 #97691F
analogous
#1F8997 #1F4D97 #2D1F97
triadic
#1F4D97 #971F4D #4D971F
tetradic
#1F4D97 #971F89 #97691F #1F972D
square
#1F4D97 #971F89 #97691F #1F972D
split-complementary
#1F4D97 #972D1F #89971F
monochromatic
#0A1931 #153364 #1F4D97 #2967CA #5488DC

Accessibility & contrast

On white

8.18
#1F4D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#1F4D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D97
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D97#FFFFFF#000000##FFFFFF
##1F4D971.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23559A
Deuteranopia (green-blind)
#004A96
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4d97;
/* rgb */ color: rgb(31, 77, 151);
/* oklch */ color: oklch(43.2% 0.132 259.6);
Tailwind
colors: {
  custom: {
    50: '#6e7eb6',
    500: '#1f4d97',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d97;
$custom-light: #6e7eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d97",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 151
  },
  "hsl": {
    "h": 217,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.43176,
    "c": 0.13155,
    "h": 259.6
  },
  "luminance": 0.07833
}

Semantic roles & 50–950 ramp

primary
#1F4D97
secondary
#BF9652
accent
#A83FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4D97

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

Preview Lab → · Contrast checker → · Palette generator →

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