#1A0540#1A0540

#1A0540 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.4% C 0.101 H 290.9°. Best body text is #FFFFFF at 18.43:1 contrast (WCAG AA passes).

Color values

HEX#1A0540
RGBrgb(26, 5, 64)
HSLhsl(261, 86%, 14%)
HSVhsv(261, 92%, 25%)
CMYKcmyk(59.4%, 92.2%, 0%, 74.9%)
CIE-LABlab(6.31, 26.57, -32.73)
CIE-LCHlch(6.31, 42.15, 309.07°)
OKLaboklab(20.37% 0.0362 -0.0948)
OKLCHoklch(20.37% 0.101 290.9)
XYZxyz(1.4054, 0.6983, 4.9102)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0540 #2B4005
analogous
#050D40 #1A0540 #370540
triadic
#1A0540 #401A05 #05401A
tetradic
#1A0540 #40050D #2B4005 #054037
square
#1A0540 #40050D #2B4005 #054037
split-complementary
#1A0540 #403705 #0D4005
monochromatic
#0C021C #0C021C #1A0540 #310979 #480EB2

Accessibility & contrast

On white

18.43
#1A0540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A0540
18.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0540#FFFFFF#000000##FFFFFF
##1A05401.0018.431.1418.43
#FFFFFF18.431.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001542
Deuteranopia (green-blind)
#00133F
Tritanopia (blue-blind)
#0C1623
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1a0540;
/* rgb */ color: rgb(26, 5, 64);
/* oklch */ color: oklch(20.4% 0.101 290.9);
Tailwind
colors: {
  custom: {
    50: '#5c4875',
    500: '#1a0540',
    950: '#000000',
  },
}
SCSS
$custom: #1a0540;
$custom-light: #5c4875;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0540",
  "rgb": {
    "r": 26,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 261.356,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.20366,
    "c": 0.10143,
    "h": 290.9
  },
  "luminance": 0.00698
}

Semantic roles & 50–950 ramp

primary
#1A0540
secondary
#5E8120
accent
#FC2CB2
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #1A0540

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

Preview Lab → · Contrast checker → · Palette generator →

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