#1D012F#1D012F

#1D012F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.2% C 0.089 H 308.2°. Best body text is #FFFFFF at 19.13:1 contrast (WCAG AA passes).

Color values

HEX#1D012F
RGBrgb(29, 1, 47)
HSLhsl(277, 96%, 9%)
HSVhsv(277, 98%, 18%)
CMYKcmyk(38.3%, 97.9%, 0%, 81.6%)
CIE-LABlab(4.41, 22.69, -23.34)
CIE-LCHlch(4.41, 32.55, 314.19°)
OKLaboklab(18.17% 0.0552 -0.07)
OKLCHoklch(18.17% 0.089 308.2)
XYZxyz(1.0305, 0.4882, 2.7287)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D012F #132F01
analogous
#06012F #1D012F #2F012A
triadic
#1D012F #2F1D01 #012F1D
tetradic
#1D012F #2F0601 #132F01 #012A2F
square
#1D012F #2F0601 #132F01 #012A2F
split-complementary
#1D012F #2A2F01 #012F06
monochromatic
#12011E #12011E #1D012F #42026B #6704A7

Accessibility & contrast

On white

19.13
#1D012F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#1D012F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D012F
19.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D012F#FFFFFF#000000##FFFFFF
##1D012F1.0019.131.1019.13
#FFFFFF19.131.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E30
Deuteranopia (green-blind)
#00102E
Tritanopia (blue-blind)
#1A0C18
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #1d012f;
/* rgb */ color: rgb(29, 1, 47);
/* oklch */ color: oklch(18.2% 0.089 308.2);
Tailwind
colors: {
  custom: {
    50: '#5b4668',
    500: '#1d012f',
    950: '#000000',
  },
}
SCSS
$custom: #1d012f;
$custom-light: #5b4668;
$custom-dark: #000000;
JSON
{
  "hex": "#1d012f",
  "rgb": {
    "r": 29,
    "g": 1,
    "b": 47
  },
  "hsl": {
    "h": 276.522,
    "s": 95.833,
    "l": 9.412
  },
  "oklch": {
    "l": 0.18167,
    "c": 0.08918,
    "h": 308.2
  },
  "luminance": 0.00488
}

Semantic roles & 50–950 ramp

primary
#1D012F
secondary
#3C7517
accent
#FF297D
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1D012F

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

Preview Lab → · Contrast checker → · Palette generator →

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