#1D3C87#1D3C87

#1D3C87 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.0% C 0.131 H 264.2°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#1D3C87
RGBrgb(29, 60, 135)
HSLhsl(222, 65%, 32%)
HSVhsv(222, 79%, 53%)
CMYKcmyk(78.5%, 55.6%, 0%, 47.1%)
CIE-LABlab(27.41, 17.29, -45.27)
CIE-LCHlch(27.41, 48.46, 290.90°)
OKLaboklab(38.04% -0.0134 -0.1305)
OKLCHoklch(38.04% 0.131 264.2)
XYZxyz(6.4942, 5.2415, 23.5864)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3C87 #87681D
analogous
#1D7187 #1D3C87 #331D87
triadic
#1D3C87 #871D3C #3C871D
tetradic
#1D3C87 #871D71 #87681D #1D8733
square
#1D3C87 #871D71 #87681D #1D8733
split-complementary
#1D3C87 #87331D #71871D
monochromatic
#070F22 #122655 #1D3C87 #2852B9 #4771D7

Accessibility & contrast

On white

10.25
#1D3C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#1D3C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3C87
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3C87#FFFFFF#000000##FFFFFF
##1D3C871.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468A
Deuteranopia (green-blind)
#003C86
Tritanopia (blue-blind)
#004E5B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1d3c87;
/* rgb */ color: rgb(29, 60, 135);
/* oklch */ color: oklch(38.0% 0.131 264.2);
Tailwind
colors: {
  custom: {
    50: '#6a71ab',
    500: '#1d3c87',
    950: '#000000',
  },
}
SCSS
$custom: #1d3c87;
$custom-light: #6a71ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3c87",
  "rgb": {
    "r": 29,
    "g": 60,
    "b": 135
  },
  "hsl": {
    "h": 222.453,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3804,
    "c": 0.13114,
    "h": 264.2
  },
  "luminance": 0.05242
}

Semantic roles & 50–950 ramp

primary
#1D3C87
secondary
#B99846
accent
#B740E8
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1D3C87

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

Preview Lab → · Contrast checker → · Palette generator →

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