#1D0C47#1D0C47

#1D0C47 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.102 H 288.6°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#1D0C47
RGBrgb(29, 12, 71)
HSLhsl(257, 71%, 16%)
HSVhsv(257, 83%, 28%)
CMYKcmyk(59.2%, 83.1%, 0%, 72.2%)
CIE-LABlab(8.82, 25.70, -33.56)
CIE-LCHlch(8.82, 42.27, 307.45°)
OKLaboklab(22.54% 0.0324 -0.0965)
OKLCHoklch(22.54% 0.102 288.6)
XYZxyz(1.7752, 0.9790, 6.0554)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0C47 #36470C
analogous
#0C1947 #1D0C47 #3B0C47
triadic
#1D0C47 #471D0C #0C471D
tetradic
#1D0C47 #470C19 #36470C #0C473B
square
#1D0C47 #470C19 #36470C #0C473B
split-complementary
#1D0C47 #473B0C #19470C
monochromatic
#0B041A #0B041A #1D0C47 #32157B #481EB0

Accessibility & contrast

On white

17.56
#1D0C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D0C47
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0C47#FFFFFF#000000##FFFFFF
##1D0C471.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A49
Deuteranopia (green-blind)
#001846
Tritanopia (blue-blind)
#0D1C29
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1d0c47;
/* rgb */ color: rgb(29, 12, 71);
/* oklch */ color: oklch(22.5% 0.102 288.6);
Tailwind
colors: {
  custom: {
    50: '#5f4d7b',
    500: '#1d0c47',
    950: '#000000',
  },
}
SCSS
$custom: #1d0c47;
$custom-light: #5f4d7b;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0c47",
  "rgb": {
    "r": 29,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 257.288,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.2254,
    "c": 0.10178,
    "h": 288.6
  },
  "luminance": 0.00979
}

Semantic roles & 50–950 ramp

primary
#1D0C47
secondary
#6A832C
accent
#EE3ABA
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #1D0C47

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

Preview Lab → · Contrast checker → · Palette generator →

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