#1A0542#1A0542

#1A0542 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.6% C 0.104 H 289.9°. Best body text is #FFFFFF at 18.35:1 contrast (WCAG AA passes).

Color values

HEX#1A0542
RGBrgb(26, 5, 66)
HSLhsl(261, 86%, 14%)
HSVhsv(261, 92%, 26%)
CMYKcmyk(60.6%, 92.4%, 0%, 74.1%)
CIE-LABlab(6.52, 27.33, -33.81)
CIE-LCHlch(6.52, 43.48, 308.95°)
OKLaboklab(20.61% 0.0353 -0.0978)
OKLCHoklch(20.61% 0.104 289.9)
XYZxyz(1.4634, 0.7214, 5.2153)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0542 #2D4205
analogous
#050F42 #1A0542 #390542
triadic
#1A0542 #421A05 #05421A
tetradic
#1A0542 #42050F #2D4205 #054239
square
#1A0542 #42050F #2D4205 #054239
split-complementary
#1A0542 #423905 #0F4205
monochromatic
#0B021C #0B021C #1A0542 #30097B #470EB4

Accessibility & contrast

On white

18.35
#1A0542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#1A0542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A0542
18.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0542#FFFFFF#000000##FFFFFF
##1A05421.0018.351.1418.35
#FFFFFF18.351.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001644
Deuteranopia (green-blind)
#001341
Tritanopia (blue-blind)
#0A1724
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1a0542;
/* rgb */ color: rgb(26, 5, 66);
/* oklch */ color: oklch(20.6% 0.104 289.9);
Tailwind
colors: {
  custom: {
    50: '#5d4877',
    500: '#1a0542',
    950: '#000000',
  },
}
SCSS
$custom: #1a0542;
$custom-light: #5d4877;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0542",
  "rgb": {
    "r": 26,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 260.656,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.20605,
    "c": 0.10394,
    "h": 289.9
  },
  "luminance": 0.00722
}

Semantic roles & 50–950 ramp

primary
#1A0542
secondary
#618220
accent
#FC2CB4
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040009
muted
#79777B

Preview Lab

Preview with #1A0542

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

Preview Lab → · Contrast checker → · Palette generator →

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