#1F4687#1F4687

#1F4687 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.4% C 0.118 H 260.0°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#1F4687
RGBrgb(31, 70, 135)
HSLhsl(218, 63%, 33%)
HSVhsv(218, 77%, 53%)
CMYKcmyk(77%, 48.1%, 0%, 47.1%)
CIE-LABlab(30.45, 10.63, -40.36)
CIE-LCHlch(30.45, 41.74, 284.76°)
OKLaboklab(40.38% -0.0203 -0.1158)
OKLCHoklch(40.38% 0.118 260)
XYZxyz(7.1268, 6.4201, 23.7806)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4687 #87601F
analogous
#1F7A87 #1F4687 #2C1F87
triadic
#1F4687 #871F46 #46871F
tetradic
#1F4687 #871F7A #87601F #1F872C
square
#1F4687 #871F7A #87601F #1F872C
split-complementary
#1F4687 #872C1F #7A871F
monochromatic
#081223 #142C55 #1F4687 #2A60B9 #4B7FD6

Accessibility & contrast

On white

9.19
#1F4687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#1F4687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4687
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4687#FFFFFF#000000##FFFFFF
##1F46871.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234D89
Deuteranopia (green-blind)
#084386
Tritanopia (blue-blind)
#005560
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f4687;
/* rgb */ color: rgb(31, 70, 135);
/* oklch */ color: oklch(40.4% 0.118 260.0);
Tailwind
colors: {
  custom: {
    50: '#6a78aa',
    500: '#1f4687',
    950: '#000000',
  },
}
SCSS
$custom: #1f4687;
$custom-light: #6a78aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4687",
  "rgb": {
    "r": 31,
    "g": 70,
    "b": 135
  },
  "hsl": {
    "h": 217.5,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.40379,
    "c": 0.11756,
    "h": 260
  },
  "luminance": 0.06421
}

Semantic roles & 50–950 ramp

primary
#1F4687
secondary
#B88F4A
accent
#A842E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1F4687

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

Preview Lab → · Contrast checker → · Palette generator →

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