#1D0F5C#1D0F5C

#1D0F5C is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.3% C 0.127 H 280.7°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#1D0F5C
RGBrgb(29, 15, 92)
HSLhsl(251, 72%, 21%)
HSVhsv(251, 84%, 36%)
CMYKcmyk(68.5%, 83.7%, 0%, 63.9%)
CIE-LABlab(11.79, 31.03, -43.07)
CIE-LCHlch(11.79, 53.08, 305.77°)
OKLaboklab(25.34% 0.0235 -0.1243)
OKLCHoklch(25.34% 0.127 280.7)
XYZxyz(2.6087, 1.3754, 10.2511)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0F5C #4E5C0F
analogous
#0F275C #1D0F5C #430F5C
triadic
#1D0F5C #5C1D0F #0F5C1D
tetradic
#1D0F5C #5C0F27 #4E5C0F #0F5C43
square
#1D0F5C #5C0F27 #4E5C0F #0F5C43
split-complementary
#1D0F5C #5C430F #275C0F
monochromatic
#08041A #0C0627 #1D0F5C #2E1891 #3E20C5

Accessibility & contrast

On white

16.47
#1D0F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D0F5C
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0F5C#FFFFFF#000000##FFFFFF
##1D0F5C1.0016.471.2816.47
#FFFFFF16.471.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225E
Deuteranopia (green-blind)
#001C5B
Tritanopia (blue-blind)
#002635
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1d0f5c;
/* rgb */ color: rgb(29, 15, 92);
/* oklch */ color: oklch(25.3% 0.127 280.7);
Tailwind
colors: {
  custom: {
    50: '#63508b',
    500: '#1d0f5c',
    950: '#000000',
  },
}
SCSS
$custom: #1d0f5c;
$custom-light: #63508b;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0f5c",
  "rgb": {
    "r": 29,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 250.909,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.25342,
    "c": 0.1265,
    "h": 280.7
  },
  "luminance": 0.01376
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D0F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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