#2A1576#2A1576

#2A1576 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.151 H 282.5°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#2A1576
RGBrgb(42, 21, 118)
HSLhsl(253, 70%, 27%)
HSVhsv(253, 82%, 46%)
CMYKcmyk(64.4%, 82.2%, 0%, 53.7%)
CIE-LABlab(17.16, 37.84, -51.25)
CIE-LCHlch(17.16, 63.71, 306.44°)
OKLaboklab(30.29% 0.0327 -0.1478)
OKLCHoklch(30.29% 0.151 282.5)
XYZxyz(4.4920, 2.3363, 17.3503)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1576 #617615
analogous
#153076 #2A1576 #5B1576
triadic
#2A1576 #762A15 #15762A
tetradic
#2A1576 #761530 #617615 #15765B
square
#2A1576 #761530 #617615 #15765B
split-complementary
#2A1576 #765B15 #307615
monochromatic
#09051A #180C42 #2A1576 #3C1EAA #522CD9

Accessibility & contrast

On white

14.31
#2A1576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2A1576 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1576
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1576#FFFFFF#000000##FFFFFF
##2A15761.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002774
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a1576;
/* rgb */ color: rgb(42, 21, 118);
/* oklch */ color: oklch(30.3% 0.151 282.5);
Tailwind
colors: {
  custom: {
    50: '#6f569f',
    500: '#2a1576',
    950: '#000000',
  },
}
SCSS
$custom: #2a1576;
$custom-light: #6f569f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1576",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 252.99,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30288,
    "c": 0.15139,
    "h": 282.5
  },
  "luminance": 0.02337
}

Semantic roles & 50–950 ramp

primary
#2A1576
secondary
#93AC3B
accent
#ED3BC6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2A1576

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

Preview Lab → · Contrast checker → · Palette generator →

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