#1D012C#1D012C

#1D012C is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.8% C 0.086 H 311.0°. Best body text is #FFFFFF at 19.21:1 contrast (WCAG AA passes).

Color values

HEX#1D012C
RGBrgb(29, 1, 44)
HSLhsl(279, 96%, 9%)
HSVhsv(279, 98%, 17%)
CMYKcmyk(34.1%, 97.7%, 0%, 82.7%)
CIE-LABlab(4.20, 21.47, -21.41)
CIE-LCHlch(4.20, 30.32, 315.08°)
OKLaboklab(17.85% 0.0565 -0.0649)
OKLCHoklch(17.85% 0.086 311)
XYZxyz(0.9721, 0.4648, 2.4209)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D012C #102C01
analogous
#08012C #1D012C #2C0126
triadic
#1D012C #2C1D01 #012C1D
tetradic
#1D012C #2C0801 #102C01 #01262C
square
#1D012C #2C0801 #102C01 #01262C
split-complementary
#1D012C #262C01 #012C08
monochromatic
#14011E #14011E #1D012C #440268 #6C04A4

Accessibility & contrast

On white

19.21
#1D012C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#1D012C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D012C
19.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D012C#FFFFFF#000000##FFFFFF
##1D012C1.0019.211.0919.21
#FFFFFF19.211.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2D
Deuteranopia (green-blind)
#000F2B
Tritanopia (blue-blind)
#1B0A16
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #1d012c;
/* rgb */ color: rgb(29, 1, 44);
/* oklch */ color: oklch(17.8% 0.086 311.0);
Tailwind
colors: {
  custom: {
    50: '#5a4665',
    500: '#1d012c',
    950: '#000000',
  },
}
SCSS
$custom: #1d012c;
$custom-light: #5a4665;
$custom-dark: #000000;
JSON
{
  "hex": "#1d012c",
  "rgb": {
    "r": 29,
    "g": 1,
    "b": 44
  },
  "hsl": {
    "h": 279.07,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.17849,
    "c": 0.08605,
    "h": 311
  },
  "luminance": 0.00465
}

Semantic roles & 50–950 ramp

primary
#1D012C
secondary
#377217
accent
#FF2974
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040005
muted
#79777A

Preview Lab

Preview with #1D012C

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

Preview Lab → · Contrast checker → · Palette generator →

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