#1D4887#1D4887

#1D4887 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.8% C 0.116 H 258.3°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#1D4887
RGBrgb(29, 72, 135)
HSLhsl(216, 65%, 32%)
HSVhsv(216, 79%, 53%)
CMYKcmyk(78.5%, 46.7%, 0%, 47.1%)
CIE-LABlab(30.98, 9.00, -39.50)
CIE-LCHlch(30.98, 40.52, 282.84°)
OKLaboklab(40.77% -0.0236 -0.1133)
OKLCHoklch(40.77% 0.116 258.3)
XYZxyz(7.1956, 6.6444, 23.8202)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4887 #875C1D
analogous
#1D7D87 #1D4887 #271D87
triadic
#1D4887 #871D48 #48871D
tetradic
#1D4887 #871D7D #875C1D #1D8727
square
#1D4887 #871D7D #875C1D #1D8727
split-complementary
#1D4887 #87271D #7D871D
monochromatic
#071222 #122D55 #1D4887 #2863B9 #4782D7

Accessibility & contrast

On white

9.02
#1D4887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#1D4887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D4887
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4887#FFFFFF#000000##FFFFFF
##1D48871.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d4887;
/* rgb */ color: rgb(29, 72, 135);
/* oklch */ color: oklch(40.8% 0.116 258.3);
Tailwind
colors: {
  custom: {
    50: '#6a7aaa',
    500: '#1d4887',
    950: '#000000',
  },
}
SCSS
$custom: #1d4887;
$custom-light: #6a7aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4887",
  "rgb": {
    "r": 29,
    "g": 72,
    "b": 135
  },
  "hsl": {
    "h": 215.66,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40771,
    "c": 0.11569,
    "h": 258.3
  },
  "luminance": 0.06645
}

Semantic roles & 50–950 ramp

primary
#1D4887
secondary
#B98B46
accent
#A440E8
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1D4887

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

Preview Lab → · Contrast checker → · Palette generator →

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