#1D3989#1D3989

#1D3989 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.6% C 0.138 H 265.5°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#1D3989
RGBrgb(29, 57, 137)
HSLhsl(224, 65%, 33%)
HSVhsv(224, 79%, 54%)
CMYKcmyk(78.8%, 58.4%, 0%, 46.3%)
CIE-LABlab(26.71, 20.18, -47.64)
CIE-LCHlch(26.71, 51.74, 292.96°)
OKLaboklab(37.56% -0.0109 -0.1375)
OKLCHoklch(37.56% 0.138 265.5)
XYZxyz(6.4836, 4.9929, 24.2841)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3989 #896D1D
analogous
#1D6F89 #1D3989 #371D89
triadic
#1D3989 #891D39 #39891D
tetradic
#1D3989 #891D6F #896D1D #1D8937
square
#1D3989 #891D6F #896D1D #1D8937
split-complementary
#1D3989 #89371D #6F891D
monochromatic
#080F24 #122456 #1D3989 #284EBC #486DD8

Accessibility & contrast

On white

10.51
#1D3989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#1D3989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3989
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3989#FFFFFF#000000##FFFFFF
##1D39891.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448C
Deuteranopia (green-blind)
#003A87
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1d3989;
/* rgb */ color: rgb(29, 57, 137);
/* oklch */ color: oklch(37.6% 0.138 265.5);
Tailwind
colors: {
  custom: {
    50: '#6b6eac',
    500: '#1d3989',
    950: '#000000',
  },
}
SCSS
$custom: #1d3989;
$custom-light: #6b6eac;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3989",
  "rgb": {
    "r": 29,
    "g": 57,
    "b": 137
  },
  "hsl": {
    "h": 224.444,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37564,
    "c": 0.13793,
    "h": 265.5
  },
  "luminance": 0.04994
}

Semantic roles & 50–950 ramp

primary
#1D3989
secondary
#BA9D47
accent
#BC40E8
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1D3989

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

Preview Lab → · Contrast checker → · Palette generator →

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