#2A1573#2A1573

#2A1573 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.148 H 283.2°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#2A1573
RGBrgb(42, 21, 115)
HSLhsl(253, 69%, 27%)
HSVhsv(253, 82%, 45%)
CMYKcmyk(63.5%, 81.7%, 0%, 54.9%)
CIE-LABlab(16.83, 36.90, -49.87)
CIE-LCHlch(16.83, 62.04, 306.50°)
OKLaboklab(29.96% 0.0336 -0.1438)
OKLCHoklch(29.96% 0.148 283.2)
XYZxyz(4.3166, 2.2661, 16.4263)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1573 #5E7315
analogous
#152F73 #2A1573 #591573
triadic
#2A1573 #732A15 #15732A
tetradic
#2A1573 #73152F #5E7315 #157359
square
#2A1573 #73152F #5E7315 #157359
split-complementary
#2A1573 #735915 #2F7315
monochromatic
#09051A #170C3F #2A1573 #3D1EA7 #512AD8

Accessibility & contrast

On white

14.45
#2A1573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2A1573 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1573
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1573#FFFFFF#000000##FFFFFF
##2A15731.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C76
Deuteranopia (green-blind)
#002671
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a1573;
/* rgb */ color: rgb(42, 21, 115);
/* oklch */ color: oklch(30.0% 0.148 283.2);
Tailwind
colors: {
  custom: {
    50: '#6e569c',
    500: '#2a1573',
    950: '#000000',
  },
}
SCSS
$custom: #2a1573;
$custom-light: #6e569c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1573",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 115
  },
  "hsl": {
    "h": 253.404,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29955,
    "c": 0.14768,
    "h": 283.2
  },
  "luminance": 0.02266
}

Semantic roles & 50–950 ramp

primary
#2A1573
secondary
#90A93B
accent
#EC3CC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1573

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

Preview Lab → · Contrast checker → · Palette generator →

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