#2A1556#2A1556

#2A1556 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.110 H 292.2°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#2A1556
RGBrgb(42, 21, 86)
HSLhsl(259, 61%, 21%)
HSVhsv(259, 76%, 34%)
CMYKcmyk(51.2%, 75.6%, 0%, 66.3%)
CIE-LABlab(13.83, 27.71, -35.62)
CIE-LCHlch(13.83, 45.13, 307.88°)
OKLaboklab(26.93% 0.0416 -0.1021)
OKLCHoklch(26.93% 0.11 292.2)
XYZxyz(2.9023, 1.7004, 8.9776)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1556 #415615
analogous
#152056 #2A1556 #4A1556
triadic
#2A1556 #562A15 #15562A
tetradic
#2A1556 #561520 #415615 #15564A
square
#2A1556 #561520 #415615 #15564A
split-complementary
#2A1556 #564A15 #205615
monochromatic
#0C0619 #120925 #2A1556 #422187 #5A2DB8

Accessibility & contrast

On white

15.67
#2A1556 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2A1556 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1556
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1556#FFFFFF#000000##FFFFFF
##2A15561.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#002255
Tritanopia (blue-blind)
#1C2533
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a1556;
/* rgb */ color: rgb(42, 21, 86);
/* oklch */ color: oklch(26.9% 0.110 292.2);
Tailwind
colors: {
  custom: {
    50: '#695486',
    500: '#2a1556',
    950: '#000000',
  },
}
SCSS
$custom: #2a1556;
$custom-light: #695486;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1556",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 86
  },
  "hsl": {
    "h": 259.385,
    "s": 60.748,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26933,
    "c": 0.11022,
    "h": 292.2
  },
  "luminance": 0.017
}

Semantic roles & 50–950 ramp

primary
#2A1556
secondary
#728E39
accent
#E444B0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2A1556

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

Preview Lab → · Contrast checker → · Palette generator →

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