#1D3887#1D3887

#1D3887 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.2% C 0.136 H 265.7°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#1D3887
RGBrgb(29, 56, 135)
HSLhsl(225, 65%, 32%)
HSVhsv(225, 79%, 53%)
CMYKcmyk(78.5%, 58.5%, 0%, 47.1%)
CIE-LABlab(26.27, 20.08, -47.12)
CIE-LCHlch(26.27, 51.22, 293.08°)
OKLaboklab(37.18% -0.0103 -0.136)
OKLCHoklch(37.18% 0.136 265.7)
XYZxyz(6.2925, 4.8381, 23.5192)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3887 #876C1D
analogous
#1D6D87 #1D3887 #371D87
triadic
#1D3887 #871D38 #38871D
tetradic
#1D3887 #871D6D #876C1D #1D8737
square
#1D3887 #871D6D #876C1D #1D8737
split-complementary
#1D3887 #87371D #6D871D
monochromatic
#070E22 #122355 #1D3887 #284DB9 #476CD7

Accessibility & contrast

On white

10.67
#1D3887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#1D3887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3887
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3887#FFFFFF#000000##FFFFFF
##1D38871.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#004C59
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1d3887;
/* rgb */ color: rgb(29, 56, 135);
/* oklch */ color: oklch(37.2% 0.136 265.7);
Tailwind
colors: {
  custom: {
    50: '#6a6eab',
    500: '#1d3887',
    950: '#000000',
  },
}
SCSS
$custom: #1d3887;
$custom-light: #6a6eab;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3887",
  "rgb": {
    "r": 29,
    "g": 56,
    "b": 135
  },
  "hsl": {
    "h": 224.717,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37178,
    "c": 0.13638,
    "h": 265.7
  },
  "luminance": 0.04839
}

Semantic roles & 50–950 ramp

primary
#1D3887
secondary
#B99C46
accent
#BD40E8
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1D3887

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

Preview Lab → · Contrast checker → · Palette generator →

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