#1D2387#1D2387

#1D2387 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.162 H 271.0°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#1D2387
RGBrgb(29, 35, 135)
HSLhsl(237, 65%, 32%)
HSVhsv(237, 79%, 53%)
CMYKcmyk(78.5%, 74.1%, 0%, 47.1%)
CIE-LABlab(20.87, 34.22, -55.96)
CIE-LCHlch(20.87, 65.59, 301.44°)
OKLaboklab(33.21% 0.0029 -0.162)
OKLCHoklch(33.21% 0.162 271)
XYZxyz(5.4794, 3.2119, 23.2482)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2387 #87811D
analogous
#1D5887 #1D2387 #4C1D87
triadic
#1D2387 #871D23 #23871D
tetradic
#1D2387 #871D58 #87811D #1D874C
square
#1D2387 #871D58 #87811D #1D874C
split-complementary
#1D2387 #874C1D #58871D
monochromatic
#070922 #121655 #1D2387 #2830B9 #474FD7

Accessibility & contrast

On white

12.78
#1D2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1D2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2387
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2387#FFFFFF#000000##FFFFFF
##1D23871.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1d2387;
/* rgb */ color: rgb(29, 35, 135);
/* oklch */ color: oklch(33.2% 0.162 271.0);
Tailwind
colors: {
  custom: {
    50: '#6c5fab',
    500: '#1d2387',
    950: '#000000',
  },
}
SCSS
$custom: #1d2387;
$custom-light: #6c5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2387",
  "rgb": {
    "r": 29,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 236.604,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33213,
    "c": 0.16205,
    "h": 271
  },
  "luminance": 0.03213
}

Semantic roles & 50–950 ramp

primary
#1D2387
secondary
#B9B346
accent
#DE40E8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D2387

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

Preview Lab → · Contrast checker → · Palette generator →

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