#1D1582#1D1582

#1D1582 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.7% C 0.169 H 273.2°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#1D1582
RGBrgb(29, 21, 130)
HSLhsl(244, 72%, 30%)
HSVhsv(244, 84%, 51%)
CMYKcmyk(77.7%, 83.8%, 0%, 49%)
CIE-LABlab(17.50, 40.45, -58.39)
CIE-LCHlch(17.50, 71.03, 304.71°)
OKLaboklab(30.67% 0.0096 -0.1689)
OKLCHoklch(30.67% 0.169 273.2)
XYZxyz(4.8028, 2.4087, 21.3266)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1582 #7A8215
analogous
#154382 #1D1582 #541582
triadic
#1D1582 #821D15 #15821D
tetradic
#1D1582 #821543 #7A8215 #158254
square
#1D1582 #821543 #7A8215 #158254
split-complementary
#1D1582 #825415 #438215
monochromatic
#06041A #110C4D #1D1582 #291EB7 #4033DE

Accessibility & contrast

On white

14.17
#1D1582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1D1582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1582
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1582#FFFFFF#000000##FFFFFF
##1D15821.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003085
Deuteranopia (green-blind)
#002680
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1d1582;
/* rgb */ color: rgb(29, 21, 130);
/* oklch */ color: oklch(30.7% 0.169 273.2);
Tailwind
colors: {
  custom: {
    50: '#6c56a8',
    500: '#1d1582',
    950: '#000000',
  },
}
SCSS
$custom: #1d1582;
$custom-light: #6c56a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1582",
  "rgb": {
    "r": 29,
    "g": 21,
    "b": 130
  },
  "hsl": {
    "h": 244.404,
    "s": 72.185,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30665,
    "c": 0.16918,
    "h": 273.2
  },
  "luminance": 0.02409
}

Semantic roles & 50–950 ramp

primary
#1D1582
secondary
#AEB73C
accent
#EF39E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1D1582

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

Preview Lab → · Contrast checker → · Palette generator →

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