#1D0C4A#1D0C4A

#1D0C4A is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.106 H 287.3°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#1D0C4A
RGBrgb(29, 12, 74)
HSLhsl(256, 72%, 17%)
HSVhsv(256, 84%, 29%)
CMYKcmyk(60.8%, 83.8%, 0%, 71%)
CIE-LABlab(9.14, 26.69, -35.11)
CIE-LCHlch(9.14, 44.10, 307.24°)
OKLaboklab(22.87% 0.0315 -0.101)
OKLCHoklch(22.87% 0.106 287.3)
XYZxyz(1.8738, 1.0185, 6.5751)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0C4A #394A0C
analogous
#0C1A4A #1D0C4A #3C0C4A
triadic
#1D0C4A #4A1D0C #0C4A1D
tetradic
#1D0C4A #4A0C1A #394A0C #0C4A3C
square
#1D0C4A #4A0C1A #394A0C #0C4A3C
split-complementary
#1D0C4A #4A3C0C #1A4A0C
monochromatic
#0A041A #0A041A #1D0C4A #32157F #461DB3

Accessibility & contrast

On white

17.44
#1D0C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#1D0C4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D0C4A
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0C4A#FFFFFF#000000##FFFFFF
##1D0C4A1.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4C
Deuteranopia (green-blind)
#001849
Tritanopia (blue-blind)
#0A1D2A
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1d0c4a;
/* rgb */ color: rgb(29, 12, 74);
/* oklch */ color: oklch(22.9% 0.106 287.3);
Tailwind
colors: {
  custom: {
    50: '#5f4d7d',
    500: '#1d0c4a',
    950: '#000000',
  },
}
SCSS
$custom: #1d0c4a;
$custom-light: #5f4d7d;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0c4a",
  "rgb": {
    "r": 29,
    "g": 12,
    "b": 74
  },
  "hsl": {
    "h": 256.452,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.22871,
    "c": 0.10583,
    "h": 287.3
  },
  "luminance": 0.01019
}

Semantic roles & 50–950 ramp

primary
#1D0C4A
secondary
#6D862C
accent
#EF39BD
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #1D0C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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