#1D012B#1D012B

#1D012B is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 17.7% C 0.085 H 312.0°. Best body text is #FFFFFF at 19.24:1 contrast (WCAG AA passes).

Color values

HEX#1D012B
RGBrgb(29, 1, 43)
HSLhsl(280, 95%, 9%)
HSVhsv(280, 98%, 17%)
CMYKcmyk(32.6%, 97.7%, 0%, 83.1%)
CIE-LABlab(4.13, 21.06, -20.76)
CIE-LCHlch(4.13, 29.57, 315.41°)
OKLaboklab(17.75% 0.0568 -0.0632)
OKLCHoklch(17.75% 0.085 312)
XYZxyz(0.9535, 0.4574, 2.3231)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D012B #0F2B01
analogous
#08012B #1D012B #2B0124
triadic
#1D012B #2B1D01 #012B1D
tetradic
#1D012B #2B0801 #0F2B01 #01242B
square
#1D012B #2B0801 #0F2B01 #01242B
split-complementary
#1D012B #242B01 #012B08
monochromatic
#14011E #14011E #1D012B #450267 #6E04A3

Accessibility & contrast

On white

19.24
#1D012B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D012B
19.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D012B#FFFFFF#000000##FFFFFF
##1D012B1.0019.241.0919.24
#FFFFFF19.241.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2C
Deuteranopia (green-blind)
#000F2A
Tritanopia (blue-blind)
#1B0A15
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #1d012b;
/* rgb */ color: rgb(29, 1, 43);
/* oklch */ color: oklch(17.7% 0.085 312.0);
Tailwind
colors: {
  custom: {
    50: '#5a4664',
    500: '#1d012b',
    950: '#000000',
  },
}
SCSS
$custom: #1d012b;
$custom-light: #5a4664;
$custom-dark: #000000;
JSON
{
  "hex": "#1d012b",
  "rgb": {
    "r": 29,
    "g": 1,
    "b": 43
  },
  "hsl": {
    "h": 280,
    "s": 95.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.17745,
    "c": 0.08502,
    "h": 312
  },
  "luminance": 0.00457
}

Semantic roles & 50–950 ramp

primary
#1D012B
secondary
#357117
accent
#FF2970
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040005
muted
#79777A

Preview Lab

Preview with #1D012B

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

Preview Lab → · Contrast checker → · Palette generator →

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