#1D0C4B#1D0C4B

#1D0C4B is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.107 H 286.9°. Best body text is #FFFFFF at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#1D0C4B
RGBrgb(29, 12, 75)
HSLhsl(256, 72%, 17%)
HSVhsv(256, 84%, 29%)
CMYKcmyk(61.3%, 84%, 0%, 70.6%)
CIE-LABlab(9.26, 27.02, -35.63)
CIE-LCHlch(9.26, 44.71, 307.18°)
OKLaboklab(22.98% 0.0312 -0.1025)
OKLCHoklch(22.98% 0.107 286.9)
XYZxyz(1.9078, 1.0321, 6.7539)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0C4B #3A4B0C
analogous
#0C1B4B #1D0C4B #3D0C4B
triadic
#1D0C4B #4B1D0C #0C4B1D
tetradic
#1D0C4B #4B0C1B #3A4B0C #0C4B3D
square
#1D0C4B #4B0C1B #3A4B0C #0C4B3D
split-complementary
#1D0C4B #4B3D0C #1B4B0C
monochromatic
#0A041A #0A041A #1D0C4B #311480 #461DB5

Accessibility & contrast

On white

17.41
#1D0C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#1D0C4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D0C4B
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0C4B#FFFFFF#000000##FFFFFF
##1D0C4B1.0017.411.2117.41
#FFFFFF17.411.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4D
Deuteranopia (green-blind)
#00184A
Tritanopia (blue-blind)
#081E2B
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1d0c4b;
/* rgb */ color: rgb(29, 12, 75);
/* oklch */ color: oklch(23.0% 0.107 286.9);
Tailwind
colors: {
  custom: {
    50: '#604d7e',
    500: '#1d0c4b',
    950: '#000000',
  },
}
SCSS
$custom: #1d0c4b;
$custom-light: #604d7e;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0c4b",
  "rgb": {
    "r": 29,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 256.19,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.22983,
    "c": 0.10718,
    "h": 286.9
  },
  "luminance": 0.01032
}

Semantic roles & 50–950 ramp

primary
#1D0C4B
secondary
#6E872C
accent
#EF39BE
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #1D0C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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