#1D3786#1D3786

#1D3786 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.9% C 0.136 H 266.0°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#1D3786
RGBrgb(29, 55, 134)
HSLhsl(225, 64%, 32%)
HSVhsv(225, 78%, 53%)
CMYKcmyk(78.4%, 59%, 0%, 47.5%)
CIE-LABlab(25.90, 20.38, -47.09)
CIE-LCHlch(25.90, 51.31, 293.40°)
OKLaboklab(36.88% -0.0096 -0.1359)
OKLCHoklch(36.88% 0.136 266)
XYZxyz(6.1744, 4.7141, 23.1341)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3786 #866C1D
analogous
#1D6C86 #1D3786 #381D86
triadic
#1D3786 #861D37 #37861D
tetradic
#1D3786 #861D6C #866C1D #1D8638
square
#1D3786 #861D6C #866C1D #1D8638
split-complementary
#1D3786 #86381D #6C861D
monochromatic
#070E21 #122254 #1D3786 #284CB8 #466AD7

Accessibility & contrast

On white

10.81
#1D3786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#1D3786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3786
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3786#FFFFFF#000000##FFFFFF
##1D37861.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1d3786;
/* rgb */ color: rgb(29, 55, 134);
/* oklch */ color: oklch(36.9% 0.136 266.0);
Tailwind
colors: {
  custom: {
    50: '#6a6daa',
    500: '#1d3786',
    950: '#000000',
  },
}
SCSS
$custom: #1d3786;
$custom-light: #6a6daa;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3786",
  "rgb": {
    "r": 29,
    "g": 55,
    "b": 134
  },
  "hsl": {
    "h": 225.143,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36878,
    "c": 0.13626,
    "h": 266
  },
  "luminance": 0.04715
}

Semantic roles & 50–950 ramp

primary
#1D3786
secondary
#B99C46
accent
#BE40E7
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1D3786

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

Preview Lab → · Contrast checker → · Palette generator →

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