#1D3D87#1D3D87

#1D3D87 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.3% C 0.130 H 263.7°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#1D3D87
RGBrgb(29, 61, 135)
HSLhsl(222, 65%, 32%)
HSVhsv(222, 79%, 53%)
CMYKcmyk(78.5%, 54.8%, 0%, 47.1%)
CIE-LABlab(27.70, 16.59, -44.80)
CIE-LCHlch(27.70, 47.77, 290.32°)
OKLaboklab(38.26% -0.0142 -0.1291)
OKLCHoklch(38.26% 0.13 263.7)
XYZxyz(6.5471, 5.3472, 23.6040)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3D87 #87671D
analogous
#1D7287 #1D3D87 #321D87
triadic
#1D3D87 #871D3D #3D871D
tetradic
#1D3D87 #871D72 #87671D #1D8732
square
#1D3D87 #871D72 #87671D #1D8732
split-complementary
#1D3D87 #87321D #72871D
monochromatic
#070F22 #122655 #1D3D87 #2854B9 #4773D7

Accessibility & contrast

On white

10.15
#1D3D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#1D3D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3D87
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3D87#FFFFFF#000000##FFFFFF
##1D3D871.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04478A
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1d3d87;
/* rgb */ color: rgb(29, 61, 135);
/* oklch */ color: oklch(38.3% 0.130 263.7);
Tailwind
colors: {
  custom: {
    50: '#6a72ab',
    500: '#1d3d87',
    950: '#000000',
  },
}
SCSS
$custom: #1d3d87;
$custom-light: #6a72ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3d87",
  "rgb": {
    "r": 29,
    "g": 61,
    "b": 135
  },
  "hsl": {
    "h": 221.887,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3826,
    "c": 0.12983,
    "h": 263.7
  },
  "luminance": 0.05348
}

Semantic roles & 50–950 ramp

primary
#1D3D87
secondary
#B99746
accent
#B540E8
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1D3D87

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

Preview Lab → · Contrast checker → · Palette generator →

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