#1D4786#1D4786

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

Color values

HEX#1D4786
RGBrgb(29, 71, 134)
HSLhsl(216, 64%, 32%)
HSVhsv(216, 78%, 53%)
CMYKcmyk(78.4%, 47%, 0%, 47.5%)
CIE-LABlab(30.61, 9.28, -39.48)
CIE-LCHlch(30.61, 40.56, 283.23°)
OKLaboklab(40.46% -0.0228 -0.1132)
OKLCHoklch(40.46% 0.116 258.6)
XYZxyz(7.0614, 6.4881, 23.4298)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4786 #865C1D
analogous
#1D7C86 #1D4786 #281D86
triadic
#1D4786 #861D47 #47861D
tetradic
#1D4786 #861D7C #865C1D #1D8628
square
#1D4786 #861D7C #865C1D #1D8628
split-complementary
#1D4786 #86281D #7C861D
monochromatic
#071221 #122C54 #1D4786 #2862B8 #4680D7

Accessibility & contrast

On white

9.14
#1D4786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D4786
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4786#FFFFFF#000000##FFFFFF
##1D47861.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264D88
Deuteranopia (green-blind)
#0E4485
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1d4786;
/* rgb */ color: rgb(29, 71, 134);
/* oklch */ color: oklch(40.5% 0.116 258.6);
Tailwind
colors: {
  custom: {
    50: '#6979aa',
    500: '#1d4786',
    950: '#000000',
  },
}
SCSS
$custom: #1d4786;
$custom-light: #6979aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4786",
  "rgb": {
    "r": 29,
    "g": 71,
    "b": 134
  },
  "hsl": {
    "h": 216,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40463,
    "c": 0.1155,
    "h": 258.6
  },
  "luminance": 0.06489
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D4786

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

Preview Lab → · Contrast checker → · Palette generator →

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