#1D3E87#1D3E87

#1D3E87 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.5% C 0.129 H 263.3°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#1D3E87
RGBrgb(29, 62, 135)
HSLhsl(221, 65%, 32%)
HSVhsv(221, 79%, 53%)
CMYKcmyk(78.5%, 54.1%, 0%, 47.1%)
CIE-LABlab(27.99, 15.89, -44.32)
CIE-LCHlch(27.99, 47.09, 289.73°)
OKLaboklab(38.48% -0.015 -0.1277)
OKLCHoklch(38.48% 0.129 263.3)
XYZxyz(6.6009, 5.4550, 23.6220)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3E87 #87661D
analogous
#1D7387 #1D3E87 #311D87
triadic
#1D3E87 #871D3E #3E871D
tetradic
#1D3E87 #871D73 #87661D #1D8731
square
#1D3E87 #871D73 #87661D #1D8731
split-complementary
#1D3E87 #87311D #73871D
monochromatic
#071022 #122755 #1D3E87 #2855B9 #4774D7

Accessibility & contrast

On white

10.04
#1D3E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#1D3E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3E87
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3E87#FFFFFF#000000##FFFFFF
##1D3E871.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A478A
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1d3e87;
/* rgb */ color: rgb(29, 62, 135);
/* oklch */ color: oklch(38.5% 0.129 263.3);
Tailwind
colors: {
  custom: {
    50: '#6a72ab',
    500: '#1d3e87',
    950: '#000000',
  },
}
SCSS
$custom: #1d3e87;
$custom-light: #6a72ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3e87",
  "rgb": {
    "r": 29,
    "g": 62,
    "b": 135
  },
  "hsl": {
    "h": 221.321,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38481,
    "c": 0.12852,
    "h": 263.3
  },
  "luminance": 0.05456
}

Semantic roles & 50–950 ramp

primary
#1D3E87
secondary
#B99646
accent
#B340E8
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1D3E87

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

Preview Lab → · Contrast checker → · Palette generator →

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