#1F4987#1F4987

#1F4987 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.1% C 0.114 H 258.3°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#1F4987
RGBrgb(31, 73, 135)
HSLhsl(216, 63%, 33%)
HSVhsv(216, 77%, 53%)
CMYKcmyk(77%, 45.9%, 0%, 47.1%)
CIE-LABlab(31.36, 8.59, -38.90)
CIE-LCHlch(31.36, 39.84, 282.45°)
OKLaboklab(41.08% -0.0231 -0.1114)
OKLCHoklch(41.08% 0.114 258.3)
XYZxyz(7.3192, 6.8048, 23.8447)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4987 #875D1F
analogous
#1F7D87 #1F4987 #291F87
triadic
#1F4987 #871F49 #49871F
tetradic
#1F4987 #871F7D #875D1F #1F8729
square
#1F4987 #871F7D #875D1F #1F8729
split-complementary
#1F4987 #87291F #7D871F
monochromatic
#081323 #142E55 #1F4987 #2A64B9 #4B83D6

Accessibility & contrast

On white

8.89
#1F4987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#1F4987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4987
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4987#FFFFFF#000000##FFFFFF
##1F49871.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294F89
Deuteranopia (green-blind)
#144586
Tritanopia (blue-blind)
#005861
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f4987;
/* rgb */ color: rgb(31, 73, 135);
/* oklch */ color: oklch(41.1% 0.114 258.3);
Tailwind
colors: {
  custom: {
    50: '#6a7baa',
    500: '#1f4987',
    950: '#000000',
  },
}
SCSS
$custom: #1f4987;
$custom-light: #6a7baa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4987",
  "rgb": {
    "r": 31,
    "g": 73,
    "b": 135
  },
  "hsl": {
    "h": 215.769,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.41081,
    "c": 0.1138,
    "h": 258.3
  },
  "luminance": 0.06806
}

Semantic roles & 50–950 ramp

primary
#1F4987
secondary
#B88C4A
accent
#A442E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1F4987

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

Preview Lab → · Contrast checker → · Palette generator →

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