#1D1581#1D1581

#1D1581 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.168 H 273.4°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#1D1581
RGBrgb(29, 21, 129)
HSLhsl(244, 72%, 29%)
HSVhsv(244, 84%, 51%)
CMYKcmyk(77.5%, 83.7%, 0%, 49.4%)
CIE-LABlab(17.38, 40.13, -57.96)
CIE-LCHlch(17.38, 70.50, 304.69°)
OKLaboklab(30.54% 0.0099 -0.1677)
OKLCHoklch(30.54% 0.168 273.4)
XYZxyz(4.7360, 2.3820, 20.9748)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1581 #798115
analogous
#154381 #1D1581 #531581
triadic
#1D1581 #811D15 #15811D
tetradic
#1D1581 #811543 #798115 #158153
square
#1D1581 #811543 #798115 #158153
split-complementary
#1D1581 #815315 #438115
monochromatic
#06041A #110C4C #1D1581 #291EB6 #3F33DE

Accessibility & contrast

On white

14.22
#1D1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D1581
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1581#FFFFFF#000000##FFFFFF
##1D15811.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00257F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1d1581;
/* rgb */ color: rgb(29, 21, 129);
/* oklch */ color: oklch(30.5% 0.168 273.4);
Tailwind
colors: {
  custom: {
    50: '#6c56a7',
    500: '#1d1581',
    950: '#000000',
  },
}
SCSS
$custom: #1d1581;
$custom-light: #6c56a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1581",
  "rgb": {
    "r": 29,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 244.444,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30543,
    "c": 0.16796,
    "h": 273.4
  },
  "luminance": 0.02383
}

Semantic roles & 50–950 ramp

primary
#1D1581
secondary
#ADB63C
accent
#EF39E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1D1581

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

Preview Lab → · Contrast checker → · Palette generator →

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