#1D0C51#1D0C51

#1D0C51 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.7% C 0.115 H 284.7°. Best body text is #FFFFFF at 17.16:1 contrast (WCAG AA passes).

Color values

HEX#1D0C51
RGBrgb(29, 12, 81)
HSLhsl(255, 74%, 18%)
HSVhsv(255, 85%, 32%)
CMYKcmyk(64.2%, 85.2%, 0%, 68.2%)
CIE-LABlab(9.94, 29.00, -38.65)
CIE-LCHlch(9.94, 48.32, 306.89°)
OKLaboklab(23.67% 0.0292 -0.1114)
OKLCHoklch(23.67% 0.115 284.7)
XYZxyz(2.1229, 1.1181, 7.8869)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0C51 #40510C
analogous
#0C1D51 #1D0C51 #3F0C51
triadic
#1D0C51 #511D0C #0C511D
tetradic
#1D0C51 #510C1D #40510C #0C513F
square
#1D0C51 #510C1D #40510C #0C513F
split-complementary
#1D0C51 #513F0C #1D510C
monochromatic
#0A041B #0A041C #1D0C51 #301486 #431CBC

Accessibility & contrast

On white

17.16
#1D0C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#1D0C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D0C51
17.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0C51#FFFFFF#000000##FFFFFF
##1D0C511.0017.161.2217.16
#FFFFFF17.161.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D53
Deuteranopia (green-blind)
#001950
Tritanopia (blue-blind)
#01202E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1d0c51;
/* rgb */ color: rgb(29, 12, 81);
/* oklch */ color: oklch(23.7% 0.115 284.7);
Tailwind
colors: {
  custom: {
    50: '#614d83',
    500: '#1d0c51',
    950: '#000000',
  },
}
SCSS
$custom: #1d0c51;
$custom-light: #614d83;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0c51",
  "rgb": {
    "r": 29,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 254.783,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23666,
    "c": 0.11514,
    "h": 284.7
  },
  "luminance": 0.01118
}

Semantic roles & 50–950 ramp

primary
#1D0C51
secondary
#758C2C
accent
#F137C3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#05010B
muted
#7A777C

Preview Lab

Preview with #1D0C51

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

Preview Lab → · Contrast checker → · Palette generator →

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