#1A0D51#1A0D51

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

Color values

HEX#1A0D51
RGBrgb(26, 13, 81)
HSLhsl(251, 72%, 18%)
HSVhsv(251, 84%, 32%)
CMYKcmyk(67.9%, 84%, 0%, 68.2%)
CIE-LABlab(9.81, 28.04, -38.87)
CIE-LCHlch(9.81, 47.93, 305.80°)
OKLaboklab(23.5% 0.0233 -0.1121)
OKLCHoklch(23.5% 0.115 281.8)
XYZxyz(2.0547, 1.1014, 7.8873)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0D51 #44510D
analogous
#0D2251 #1A0D51 #3C0D51
triadic
#1A0D51 #511A0D #0D511A
tetradic
#1A0D51 #510D22 #44510D #0D513C
square
#1A0D51 #510D22 #44510D #0D513C
split-complementary
#1A0D51 #513C0D #22510D
monochromatic
#08041A #09051C #1A0D51 #2B1586 #3C1EBA

Accessibility & contrast

On white

17.21
#1A0D51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A0D51
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0D51#FFFFFF#000000##FFFFFF
##1A0D511.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1a0d51;
/* rgb */ color: rgb(26, 13, 81);
/* oklch */ color: oklch(23.5% 0.115 281.8);
Tailwind
colors: {
  custom: {
    50: '#5f4e83',
    500: '#1a0d51',
    950: '#000000',
  },
}
SCSS
$custom: #1a0d51;
$custom-light: #5f4e83;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0d51",
  "rgb": {
    "r": 26,
    "g": 13,
    "b": 81
  },
  "hsl": {
    "h": 251.471,
    "s": 72.34,
    "l": 18.431
  },
  "oklch": {
    "l": 0.23496,
    "c": 0.11454,
    "h": 281.8
  },
  "luminance": 0.01102
}

Semantic roles & 50–950 ramp

primary
#1A0D51
secondary
#7A8C2E
accent
#EF39CC
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #1A0D51

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

Preview Lab → · Contrast checker → · Palette generator →

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