#2A1578#2A1578

#2A1578 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.154 H 282.0°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#2A1578
RGBrgb(42, 21, 120)
HSLhsl(253, 70%, 28%)
HSVhsv(253, 83%, 47%)
CMYKcmyk(65%, 82.5%, 0%, 52.9%)
CIE-LABlab(17.39, 38.46, -52.17)
CIE-LCHlch(17.39, 64.81, 306.40°)
OKLaboklab(30.51% 0.032 -0.1505)
OKLCHoklch(30.51% 0.154 282)
XYZxyz(4.6121, 2.3843, 17.9828)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1578 #637815
analogous
#153278 #2A1578 #5B1578
triadic
#2A1578 #782A15 #15782A
tetradic
#2A1578 #781532 #637815 #15785B
square
#2A1578 #781532 #637815 #15785B
split-complementary
#2A1578 #785B15 #327815
monochromatic
#09051A #180C44 #2A1578 #3C1EAC #522DDA

Accessibility & contrast

On white

14.22
#2A1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2A1578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1578
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1578#FFFFFF#000000##FFFFFF
##2A15781.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002776
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a1578;
/* rgb */ color: rgb(42, 21, 120);
/* oklch */ color: oklch(30.5% 0.154 282.0);
Tailwind
colors: {
  custom: {
    50: '#6f56a0',
    500: '#2a1578',
    950: '#000000',
  },
}
SCSS
$custom: #2a1578;
$custom-light: #6f56a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1578",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 252.727,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30512,
    "c": 0.15385,
    "h": 282
  },
  "luminance": 0.02385
}

Semantic roles & 50–950 ramp

primary
#2A1578
secondary
#95AE3B
accent
#ED3BC7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2A1578

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

Preview Lab → · Contrast checker → · Palette generator →

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