#2A1580#2A1580

#2A1580 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.164 H 280.3°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#2A1580
RGBrgb(42, 21, 128)
HSLhsl(252, 72%, 29%)
HSVhsv(252, 84%, 50%)
CMYKcmyk(67.2%, 83.6%, 0%, 49.8%)
CIE-LABlab(18.31, 40.94, -55.75)
CIE-LCHlch(18.31, 69.17, 306.29°)
OKLaboklab(31.42% 0.0294 -0.1609)
OKLCHoklch(31.42% 0.164 280.3)
XYZxyz(5.1181, 2.5867, 20.6475)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1580 #6B8015
analogous
#153680 #2A1580 #601580
triadic
#2A1580 #802A15 #15802A
tetradic
#2A1580 #801536 #6B8015 #158060
square
#2A1580 #801536 #6B8015 #158060
split-complementary
#2A1580 #806015 #368015
monochromatic
#09041A #190C4B #2A1580 #3B1EB5 #5432DD

Accessibility & contrast

On white

13.84
#2A1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2A1580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1580
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1580#FFFFFF#000000##FFFFFF
##2A15801.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a1580;
/* rgb */ color: rgb(42, 21, 128);
/* oklch */ color: oklch(31.4% 0.164 280.3);
Tailwind
colors: {
  custom: {
    50: '#7157a6',
    500: '#2a1580',
    950: '#000000',
  },
}
SCSS
$custom: #2a1580;
$custom-light: #7157a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1580",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 251.776,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3142,
    "c": 0.1636,
    "h": 280.3
  },
  "luminance": 0.02587
}

Semantic roles & 50–950 ramp

primary
#2A1580
secondary
#9DB53C
accent
#EF39CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2A1580

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

Preview Lab → · Contrast checker → · Palette generator →

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