#2A1577#2A1577

#2A1577 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.153 H 282.2°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#2A1577
RGBrgb(42, 21, 119)
HSLhsl(253, 70%, 27%)
HSVhsv(253, 82%, 47%)
CMYKcmyk(64.7%, 82.4%, 0%, 53.3%)
CIE-LABlab(17.27, 38.15, -51.71)
CIE-LCHlch(17.27, 64.26, 306.42°)
OKLaboklab(30.4% 0.0323 -0.1492)
OKLCHoklch(30.4% 0.153 282.2)
XYZxyz(4.5517, 2.3602, 17.6649)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1577 #627715
analogous
#153177 #2A1577 #5B1577
triadic
#2A1577 #772A15 #15772A
tetradic
#2A1577 #771531 #627715 #15775B
square
#2A1577 #771531 #627715 #15775B
split-complementary
#2A1577 #775B15 #317715
monochromatic
#09051A #180C43 #2A1577 #3C1EAB #522DDA

Accessibility & contrast

On white

14.27
#2A1577 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1577
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1577#FFFFFF#000000##FFFFFF
##2A15771.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002775
Tritanopia (blue-blind)
#003246
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a1577;
/* rgb */ color: rgb(42, 21, 119);
/* oklch */ color: oklch(30.4% 0.153 282.2);
Tailwind
colors: {
  custom: {
    50: '#6f569f',
    500: '#2a1577',
    950: '#000000',
  },
}
SCSS
$custom: #2a1577;
$custom-light: #6f569f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1577",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 119
  },
  "hsl": {
    "h": 252.857,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.304,
    "c": 0.15263,
    "h": 282.2
  },
  "luminance": 0.0236
}

Semantic roles & 50–950 ramp

primary
#2A1577
secondary
#94AD3B
accent
#ED3BC7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2A1577

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

Preview Lab → · Contrast checker → · Palette generator →

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