#1D4787#1D4787

#1D4787 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.5% C 0.117 H 258.8°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#1D4787
RGBrgb(29, 71, 135)
HSLhsl(216, 65%, 32%)
HSVhsv(216, 79%, 53%)
CMYKcmyk(78.5%, 47.4%, 0%, 47.1%)
CIE-LABlab(30.68, 9.69, -39.99)
CIE-LCHlch(30.68, 41.15, 283.61°)
OKLaboklab(40.54% -0.0227 -0.1147)
OKLCHoklch(40.54% 0.117 258.8)
XYZxyz(7.1315, 6.5161, 23.7989)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4787 #875D1D
analogous
#1D7C87 #1D4787 #281D87
triadic
#1D4787 #871D47 #47871D
tetradic
#1D4787 #871D7C #875D1D #1D8728
square
#1D4787 #871D7C #875D1D #1D8728
split-complementary
#1D4787 #87281D #7C871D
monochromatic
#071222 #122D55 #1D4787 #2861B9 #4780D7

Accessibility & contrast

On white

9.12
#1D4787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#1D4787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D4787
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4787#FFFFFF#000000##FFFFFF
##1D47871.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254D89
Deuteranopia (green-blind)
#0C4486
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1d4787;
/* rgb */ color: rgb(29, 71, 135);
/* oklch */ color: oklch(40.5% 0.117 258.8);
Tailwind
colors: {
  custom: {
    50: '#6a79aa',
    500: '#1d4787',
    950: '#000000',
  },
}
SCSS
$custom: #1d4787;
$custom-light: #6a79aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4787",
  "rgb": {
    "r": 29,
    "g": 71,
    "b": 135
  },
  "hsl": {
    "h": 216.226,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40536,
    "c": 0.11695,
    "h": 258.8
  },
  "luminance": 0.06517
}

Semantic roles & 50–950 ramp

primary
#1D4787
secondary
#B98C46
accent
#A540E8
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1D4787

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

Preview Lab → · Contrast checker → · Palette generator →

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