#1D1580#1D1580

#1D1580 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.167 H 273.5°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#1D1580
RGBrgb(29, 21, 128)
HSLhsl(244, 72%, 29%)
HSVhsv(244, 84%, 50%)
CMYKcmyk(77.3%, 83.6%, 0%, 49.8%)
CIE-LABlab(17.25, 39.80, -57.53)
CIE-LCHlch(17.25, 69.96, 304.67°)
OKLaboklab(30.42% 0.0101 -0.1664)
OKLCHoklch(30.42% 0.167 273.5)
XYZxyz(4.6698, 2.3556, 20.6264)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1580 #788015
analogous
#154380 #1D1580 #531580
triadic
#1D1580 #801D15 #15801D
tetradic
#1D1580 #801543 #788015 #158053
square
#1D1580 #801543 #788015 #158053
split-complementary
#1D1580 #805315 #438015
monochromatic
#06041A #110C4B #1D1580 #291EB5 #3F32DD

Accessibility & contrast

On white

14.27
#1D1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1D1580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1580
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1580#FFFFFF#000000##FFFFFF
##1D15801.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00257E
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1d1580;
/* rgb */ color: rgb(29, 21, 128);
/* oklch */ color: oklch(30.4% 0.167 273.5);
Tailwind
colors: {
  custom: {
    50: '#6c56a6',
    500: '#1d1580',
    950: '#000000',
  },
}
SCSS
$custom: #1d1580;
$custom-light: #6c56a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1580",
  "rgb": {
    "r": 29,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 244.486,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30421,
    "c": 0.16673,
    "h": 273.5
  },
  "luminance": 0.02356
}

Semantic roles & 50–950 ramp

primary
#1D1580
secondary
#ACB53C
accent
#EF39E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1D1580

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

Preview Lab → · Contrast checker → · Palette generator →

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