#2A1561#2A1561

#2A1561 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.0% C 0.125 H 288.2°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#2A1561
RGBrgb(42, 21, 97)
HSLhsl(257, 64%, 23%)
HSVhsv(257, 78%, 38%)
CMYKcmyk(56.7%, 78.4%, 0%, 62%)
CIE-LABlab(14.91, 31.20, -41.23)
CIE-LCHlch(14.91, 51.71, 307.12°)
OKLaboklab(28.03% 0.0389 -0.1185)
OKLCHoklch(28.03% 0.125 288.2)
XYZxyz(3.3800, 1.8915, 11.4939)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1561 #4C6115
analogous
#152661 #2A1561 #501561
triadic
#2A1561 #612A15 #15612A
tetradic
#2A1561 #611526 #4C6115 #156150
square
#2A1561 #611526 #4C6115 #156150
split-complementary
#2A1561 #615015 #266115
monochromatic
#0B0519 #140A2F #2A1561 #402093 #562BC6

Accessibility & contrast

On white

15.24
#2A1561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2A1561 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1561
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1561#FFFFFF#000000##FFFFFF
##2A15611.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002763
Deuteranopia (green-blind)
#002360
Tritanopia (blue-blind)
#142A3A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a1561;
/* rgb */ color: rgb(42, 21, 97);
/* oklch */ color: oklch(28.0% 0.125 288.2);
Tailwind
colors: {
  custom: {
    50: '#6b558f',
    500: '#2a1561',
    950: '#000000',
  },
}
SCSS
$custom: #2a1561;
$custom-light: #6b558f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1561",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 256.579,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.2803,
    "c": 0.12478,
    "h": 288.2
  },
  "luminance": 0.01892
}

Semantic roles & 50–950 ramp

primary
#2A1561
secondary
#7E983A
accent
#E740B9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A1561

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

Preview Lab → · Contrast checker → · Palette generator →

#2A1561 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva