#1D1887#1D1887

#1D1887 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.173 H 272.4°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#1D1887
RGBrgb(29, 24, 135)
HSLhsl(243, 70%, 31%)
HSVhsv(243, 82%, 53%)
CMYKcmyk(78.5%, 82.2%, 0%, 47.1%)
CIE-LABlab(18.64, 40.56, -59.65)
CIE-LCHlch(18.64, 72.14, 304.21°)
OKLaboklab(31.64% 0.0073 -0.1726)
OKLCHoklch(31.64% 0.173 272.4)
XYZxyz(5.2050, 2.6632, 23.1567)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1887 #828718
analogous
#184A87 #1D1887 #541887
triadic
#1D1887 #871D18 #18871D
tetradic
#1D1887 #87184A #828718 #188754
square
#1D1887 #87184A #828718 #188754
split-complementary
#1D1887 #875418 #4A8718
monochromatic
#07061F #120F53 #1D1887 #2821BB #443DDC

Accessibility & contrast

On white

13.70
#1D1887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1D1887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1887
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1887#FFFFFF#000000##FFFFFF
##1D18871.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002885
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1d1887;
/* rgb */ color: rgb(29, 24, 135);
/* oklch */ color: oklch(31.6% 0.173 272.4);
Tailwind
colors: {
  custom: {
    50: '#6d58ab',
    500: '#1d1887',
    950: '#000000',
  },
}
SCSS
$custom: #1d1887;
$custom-light: #6d58ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1887",
  "rgb": {
    "r": 29,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 242.703,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31636,
    "c": 0.17279,
    "h": 272.4
  },
  "luminance": 0.02664
}

Semantic roles & 50–950 ramp

primary
#1D1887
secondary
#B5BB40
accent
#ED3BE5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1D1887

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

Preview Lab → · Contrast checker → · Palette generator →

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