#1A0541#1A0541

#1A0541 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.5% C 0.103 H 290.4°. Best body text is #FFFFFF at 18.39:1 contrast (WCAG AA passes).

Color values

HEX#1A0541
RGBrgb(26, 5, 65)
HSLhsl(261, 86%, 14%)
HSVhsv(261, 92%, 25%)
CMYKcmyk(60%, 92.3%, 0%, 74.5%)
CIE-LABlab(6.41, 26.95, -33.27)
CIE-LCHlch(6.41, 42.82, 309.01°)
OKLaboklab(20.49% 0.0357 -0.0963)
OKLCHoklch(20.49% 0.103 290.4)
XYZxyz(1.4341, 0.7097, 5.0614)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0541 #2C4105
analogous
#050E41 #1A0541 #380541
triadic
#1A0541 #411A05 #05411A
tetradic
#1A0541 #41050E #2C4105 #054138
square
#1A0541 #41050E #2C4105 #054138
split-complementary
#1A0541 #413805 #0E4105
monochromatic
#0B021C #0B021C #1A0541 #31097A #470EB3

Accessibility & contrast

On white

18.39
#1A0541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A0541
18.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0541#FFFFFF#000000##FFFFFF
##1A05411.0018.391.1418.39
#FFFFFF18.391.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001543
Deuteranopia (green-blind)
#001340
Tritanopia (blue-blind)
#0B1723
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1a0541;
/* rgb */ color: rgb(26, 5, 65);
/* oklch */ color: oklch(20.5% 0.103 290.4);
Tailwind
colors: {
  custom: {
    50: '#5c4876',
    500: '#1a0541',
    950: '#000000',
  },
}
SCSS
$custom: #1a0541;
$custom-light: #5c4876;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0541",
  "rgb": {
    "r": 26,
    "g": 5,
    "b": 65
  },
  "hsl": {
    "h": 261,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.20485,
    "c": 0.10269,
    "h": 290.4
  },
  "luminance": 0.0071
}

Semantic roles & 50–950 ramp

primary
#1A0541
secondary
#5F8120
accent
#FC2CB3
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #1A0541

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

Preview Lab → · Contrast checker → · Palette generator →

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