#1D3F87#1D3F87

#1D3F87 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.7% C 0.127 H 262.9°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#1D3F87
RGBrgb(29, 63, 135)
HSLhsl(221, 65%, 32%)
HSVhsv(221, 79%, 53%)
CMYKcmyk(78.5%, 53.3%, 0%, 47.1%)
CIE-LABlab(28.29, 15.20, -43.85)
CIE-LCHlch(28.29, 46.41, 289.12°)
OKLaboklab(38.7% -0.0158 -0.1262)
OKLCHoklch(38.7% 0.127 262.9)
XYZxyz(6.6558, 5.5647, 23.6403)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3F87 #87651D
analogous
#1D7487 #1D3F87 #301D87
triadic
#1D3F87 #871D3F #3F871D
tetradic
#1D3F87 #871D74 #87651D #1D8730
square
#1D3F87 #871D74 #87651D #1D8730
split-complementary
#1D3F87 #87301D #74871D
monochromatic
#071022 #122755 #1D3F87 #2857B9 #4775D7

Accessibility & contrast

On white

9.94
#1D3F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#1D3F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3F87
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3F87#FFFFFF#000000##FFFFFF
##1D3F871.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E488A
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1d3f87;
/* rgb */ color: rgb(29, 63, 135);
/* oklch */ color: oklch(38.7% 0.127 262.9);
Tailwind
colors: {
  custom: {
    50: '#6a73aa',
    500: '#1d3f87',
    950: '#000000',
  },
}
SCSS
$custom: #1d3f87;
$custom-light: #6a73aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3f87",
  "rgb": {
    "r": 29,
    "g": 63,
    "b": 135
  },
  "hsl": {
    "h": 220.755,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38704,
    "c": 0.12721,
    "h": 262.9
  },
  "luminance": 0.05565
}

Semantic roles & 50–950 ramp

primary
#1D3F87
secondary
#B99546
accent
#B240E8
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1D3F87

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

Preview Lab → · Contrast checker → · Palette generator →

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