#1D0C41#1D0C41

#1D0C41 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.9% C 0.094 H 291.4°. Best body text is #FFFFFF at 17.78:1 contrast (WCAG AA passes).

Color values

HEX#1D0C41
RGBrgb(29, 12, 65)
HSLhsl(259, 69%, 15%)
HSVhsv(259, 82%, 25%)
CMYKcmyk(55.4%, 81.5%, 0%, 74.5%)
CIE-LABlab(8.18, 23.71, -30.36)
CIE-LCHlch(8.18, 38.52, 307.98°)
OKLaboklab(21.9% 0.0341 -0.0871)
OKLCHoklch(21.9% 0.094 291.4)
XYZxyz(1.5920, 0.9057, 5.0909)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0C41 #30410C
analogous
#0C1641 #1D0C41 #370C41
triadic
#1D0C41 #411D0C #0C411D
tetradic
#1D0C41 #410C16 #30410C #0C4137
square
#1D0C41 #410C16 #30410C #0C4137
split-complementary
#1D0C41 #41370C #16410C
monochromatic
#0C051A #0C051A #1D0C41 #341675 #4B1FA8

Accessibility & contrast

On white

17.78
#1D0C41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#1D0C41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D0C41
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0C41#FFFFFF#000000##FFFFFF
##1D0C411.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001943
Deuteranopia (green-blind)
#001740
Tritanopia (blue-blind)
#111A25
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1d0c41;
/* rgb */ color: rgb(29, 12, 65);
/* oklch */ color: oklch(21.9% 0.094 291.4);
Tailwind
colors: {
  custom: {
    50: '#5e4c76',
    500: '#1d0c41',
    950: '#000000',
  },
}
SCSS
$custom: #1d0c41;
$custom-light: #5e4c76;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0c41",
  "rgb": {
    "r": 29,
    "g": 12,
    "b": 65
  },
  "hsl": {
    "h": 259.245,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.21896,
    "c": 0.09354,
    "h": 291.4
  },
  "luminance": 0.00906
}

Semantic roles & 50–950 ramp

primary
#1D0C41
secondary
#637D2C
accent
#EC3CB3
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1D0C41

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

Preview Lab → · Contrast checker → · Palette generator →

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