#1D0F5D#1D0F5D

#1D0F5D is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.5% C 0.128 H 280.5°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#1D0F5D
RGBrgb(29, 15, 93)
HSLhsl(251, 72%, 21%)
HSVhsv(251, 84%, 36%)
CMYKcmyk(68.8%, 83.9%, 0%, 63.5%)
CIE-LABlab(11.91, 31.36, -43.54)
CIE-LCHlch(11.91, 53.66, 305.76°)
OKLaboklab(25.46% 0.0232 -0.1257)
OKLCHoklch(25.46% 0.128 280.5)
XYZxyz(2.6527, 1.3930, 10.4829)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0F5D #4F5D0F
analogous
#0F285D #1D0F5D #440F5D
triadic
#1D0F5D #5D1D0F #0F5D1D
tetradic
#1D0F5D #5D0F28 #4F5D0F #0F5D44
square
#1D0F5D #5D0F28 #4F5D0F #0F5D44
split-complementary
#1D0F5D #5D440F #285D0F
monochromatic
#08041A #0D0628 #1D0F5D #2D1792 #3E20C6

Accessibility & contrast

On white

16.42
#1D0F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#1D0F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D0F5D
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0F5D#FFFFFF#000000##FFFFFF
##1D0F5D1.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225F
Deuteranopia (green-blind)
#001C5C
Tritanopia (blue-blind)
#002636
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1d0f5d;
/* rgb */ color: rgb(29, 15, 93);
/* oklch */ color: oklch(25.5% 0.128 280.5);
Tailwind
colors: {
  custom: {
    50: '#64508c',
    500: '#1d0f5d',
    950: '#000000',
  },
}
SCSS
$custom: #1d0f5d;
$custom-light: #64508c;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0f5d",
  "rgb": {
    "r": 29,
    "g": 15,
    "b": 93
  },
  "hsl": {
    "h": 250.769,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.2546,
    "c": 0.12781,
    "h": 280.5
  },
  "luminance": 0.01393
}

Semantic roles & 50–950 ramp

primary
#1D0F5D
secondary
#849631
accent
#EF39CE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1D0F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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