#2A1481#2A1481

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

Color values

HEX#2A1481
RGBrgb(42, 20, 129)
HSLhsl(252, 73%, 29%)
HSVhsv(252, 84%, 51%)
CMYKcmyk(67.4%, 84.5%, 0%, 49.4%)
CIE-LABlab(18.26, 41.71, -56.46)
CIE-LCHlch(18.26, 70.20, 306.46°)
OKLaboklab(31.43% 0.0295 -0.163)
OKLCHoklch(31.43% 0.166 280.3)
XYZxyz(5.1662, 2.5771, 20.9898)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1481 #6B8114
analogous
#143581 #2A1481 #611481
triadic
#2A1481 #812A14 #14812A
tetradic
#2A1481 #811435 #6B8114 #148161
square
#2A1481 #811435 #6B8114 #148161
split-complementary
#2A1481 #816114 #358114
monochromatic
#09041A #190C4C #2A1481 #3B1CB6 #5430DF

Accessibility & contrast

On white

13.86
#2A1481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1481
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1481#FFFFFF#000000##FFFFFF
##2A14811.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a1481;
/* rgb */ color: rgb(42, 20, 129);
/* oklch */ color: oklch(31.4% 0.166 280.3);
Tailwind
colors: {
  custom: {
    50: '#7156a7',
    500: '#2a1481',
    950: '#000000',
  },
}
SCSS
$custom: #2a1481;
$custom-light: #7156a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1481",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 252.11,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31426,
    "c": 0.16564,
    "h": 280.3
  },
  "luminance": 0.02578
}

Semantic roles & 50–950 ramp

primary
#2A1481
secondary
#9DB63B
accent
#F038CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A1481

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

Preview Lab → · Contrast checker → · Palette generator →

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