#1A0546#1A0546

#1A0546 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.109 H 287.9°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#1A0546
RGBrgb(26, 5, 70)
HSLhsl(259, 87%, 15%)
HSVhsv(259, 93%, 27%)
CMYKcmyk(62.9%, 92.9%, 0%, 72.5%)
CIE-LABlab(6.96, 28.80, -35.92)
CIE-LCHlch(6.96, 46.04, 308.72°)
OKLaboklab(21.09% 0.0335 -0.1036)
OKLCHoklch(21.09% 0.109 287.9)
XYZxyz(1.5854, 0.7703, 5.8583)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0546 #314605
analogous
#051046 #1A0546 #3B0546
triadic
#1A0546 #461A05 #05461A
tetradic
#1A0546 #460510 #314605 #05463B
square
#1A0546 #460510 #314605 #05463B
split-complementary
#1A0546 #463B05 #104605
monochromatic
#0B021D #0B021D #1A0546 #2F097F #440DB8

Accessibility & contrast

On white

18.20
#1A0546 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#1A0546 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A0546
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0546#FFFFFF#000000##FFFFFF
##1A05461.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001748
Deuteranopia (green-blind)
#001445
Tritanopia (blue-blind)
#061926
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1a0546;
/* rgb */ color: rgb(26, 5, 70);
/* oklch */ color: oklch(21.1% 0.109 287.9);
Tailwind
colors: {
  custom: {
    50: '#5e487a',
    500: '#1a0546',
    950: '#000000',
  },
}
SCSS
$custom: #1a0546;
$custom-light: #5e487a;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0546",
  "rgb": {
    "r": 26,
    "g": 5,
    "b": 70
  },
  "hsl": {
    "h": 259.385,
    "s": 86.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.21092,
    "c": 0.10894,
    "h": 287.9
  },
  "luminance": 0.0077
}

Semantic roles & 50–950 ramp

primary
#1A0546
secondary
#658621
accent
#FD2BB9
background
#F5F4F7
surface
#E9E6EE
border
#C5C2C9
text
#050109
muted
#79777B

Preview Lab

Preview with #1A0546

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

Preview Lab → · Contrast checker → · Palette generator →

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