#1F4887#1F4887

#1F4887 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 40.8% C 0.115 H 258.9°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#1F4887
RGBrgb(31, 72, 135)
HSLhsl(216, 63%, 33%)
HSVhsv(216, 77%, 53%)
CMYKcmyk(77%, 46.7%, 0%, 47.1%)
CIE-LABlab(31.05, 9.27, -39.39)
CIE-LCHlch(31.05, 40.46, 283.24°)
OKLaboklab(40.85% -0.0221 -0.1129)
OKLCHoklch(40.85% 0.115 258.9)
XYZxyz(7.2540, 6.6745, 23.8230)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4887 #875E1F
analogous
#1F7C87 #1F4887 #2A1F87
triadic
#1F4887 #871F48 #48871F
tetradic
#1F4887 #871F7C #875E1F #1F872A
square
#1F4887 #871F7C #875E1F #1F872A
split-complementary
#1F4887 #872A1F #7C871F
monochromatic
#081323 #142D55 #1F4887 #2A63B9 #4B82D6

Accessibility & contrast

On white

8.99
#1F4887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#1F4887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4887
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4887#FFFFFF#000000##FFFFFF
##1F48871.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274E89
Deuteranopia (green-blind)
#114586
Tritanopia (blue-blind)
#005761
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f4887;
/* rgb */ color: rgb(31, 72, 135);
/* oklch */ color: oklch(40.8% 0.115 258.9);
Tailwind
colors: {
  custom: {
    50: '#6a7aaa',
    500: '#1f4887',
    950: '#000000',
  },
}
SCSS
$custom: #1f4887;
$custom-light: #6a7aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4887",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 135
  },
  "hsl": {
    "h": 216.346,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.40846,
    "c": 0.11504,
    "h": 258.9
  },
  "luminance": 0.06675
}

Semantic roles & 50–950 ramp

primary
#1F4887
secondary
#B88D4A
accent
#A542E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1F4887

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

Preview Lab → · Contrast checker → · Palette generator →

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