#1D3988#1D3988

#1D3988 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.5% C 0.137 H 265.4°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#1D3988
RGBrgb(29, 57, 136)
HSLhsl(224, 65%, 32%)
HSVhsv(224, 79%, 53%)
CMYKcmyk(78.7%, 58.1%, 0%, 46.7%)
CIE-LABlab(26.63, 19.78, -47.15)
CIE-LCHlch(26.63, 51.14, 292.76°)
OKLaboklab(37.48% -0.011 -0.1361)
OKLCHoklch(37.48% 0.137 265.4)
XYZxyz(6.4122, 4.9643, 23.9080)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3988 #886C1D
analogous
#1D6F88 #1D3988 #371D88
triadic
#1D3988 #881D39 #39881D
tetradic
#1D3988 #881D6F #886C1D #1D8837
square
#1D3988 #881D6F #886C1D #1D8837
split-complementary
#1D3988 #88371D #6F881D
monochromatic
#070F23 #122456 #1D3988 #284EBA #486DD8

Accessibility & contrast

On white

10.54
#1D3988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#1D3988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3988
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3988#FFFFFF#000000##FFFFFF
##1D39881.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448B
Deuteranopia (green-blind)
#003A86
Tritanopia (blue-blind)
#004D5A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1d3988;
/* rgb */ color: rgb(29, 57, 136);
/* oklch */ color: oklch(37.5% 0.137 265.4);
Tailwind
colors: {
  custom: {
    50: '#6b6eab',
    500: '#1d3988',
    950: '#000000',
  },
}
SCSS
$custom: #1d3988;
$custom-light: #6b6eab;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3988",
  "rgb": {
    "r": 29,
    "g": 57,
    "b": 136
  },
  "hsl": {
    "h": 224.299,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37477,
    "c": 0.1365,
    "h": 265.4
  },
  "luminance": 0.04965
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D3988

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

Preview Lab → · Contrast checker → · Palette generator →

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