#1D062C#1D062C

#1D062C is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.8% C 0.075 H 308.8°. Best body text is #FFFFFF at 18.84:1 contrast (WCAG AA passes).

Color values

HEX#1D062C
RGBrgb(29, 6, 44)
HSLhsl(276, 76%, 10%)
HSVhsv(276, 86%, 17%)
CMYKcmyk(34.1%, 86.4%, 0%, 82.7%)
CIE-LABlab(5.18, 19.23, -19.86)
CIE-LCHlch(5.18, 27.64, 314.07°)
OKLaboklab(18.83% 0.0469 -0.0583)
OKLCHoklch(18.83% 0.075 308.8)
XYZxyz(1.0263, 0.5733, 2.4390)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D062C #152C06
analogous
#0A062C #1D062C #2C0628
triadic
#1D062C #2C1D06 #062C1D
tetradic
#1D062C #2C0A06 #152C06 #06282C
square
#1D062C #2C0A06 #152C06 #06282C
split-complementary
#1D062C #282C06 #062C0A
monochromatic
#12041B #12041B #1D062C #400D62 #641598

Accessibility & contrast

On white

18.84
#1D062C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#1D062C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D062C
18.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D062C#FFFFFF#000000##FFFFFF
##1D062C1.0018.841.1118.84
#FFFFFF18.841.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102D
Deuteranopia (green-blind)
#01122B
Tritanopia (blue-blind)
#1B0E18
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1d062c;
/* rgb */ color: rgb(29, 6, 44);
/* oklch */ color: oklch(18.8% 0.075 308.8);
Tailwind
colors: {
  custom: {
    50: '#5a4965',
    500: '#1d062c',
    950: '#000000',
  },
}
SCSS
$custom: #1d062c;
$custom-light: #5a4965;
$custom-dark: #000000;
JSON
{
  "hex": "#1d062c",
  "rgb": {
    "r": 29,
    "g": 6,
    "b": 44
  },
  "hsl": {
    "h": 276.316,
    "s": 76,
    "l": 9.804
  },
  "oklch": {
    "l": 0.18831,
    "c": 0.07485,
    "h": 308.8
  },
  "luminance": 0.00573
}

Semantic roles & 50–950 ramp

primary
#1D062C
secondary
#3F6D21
accent
#F33580
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A

Preview Lab

Preview with #1D062C

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

Preview Lab → · Contrast checker → · Palette generator →

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