#2A1489#2A1489

#2A1489 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.175 H 278.8°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#2A1489
RGBrgb(42, 20, 137)
HSLhsl(251, 75%, 31%)
HSVhsv(251, 85%, 54%)
CMYKcmyk(69.3%, 85.4%, 0%, 46.3%)
CIE-LABlab(19.22, 44.13, -59.93)
CIE-LCHlch(19.22, 74.42, 306.37°)
OKLaboklab(32.36% 0.0268 -0.1731)
OKLCHoklch(32.36% 0.175 278.8)
XYZxyz(5.7189, 2.7982, 23.9008)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1489 #738914
analogous
#143889 #2A1489 #641489
triadic
#2A1489 #892A14 #14892A
tetradic
#2A1489 #891438 #738914 #148964
square
#2A1489 #891438 #738914 #148964
split-complementary
#2A1489 #896414 #388914
monochromatic
#09041E #1A0C54 #2A1489 #3A1CBE #5636E2

Accessibility & contrast

On white

13.46
#2A1489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2A1489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1489
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1489#FFFFFF#000000##FFFFFF
##2A14891.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002A87
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1489;
/* rgb */ color: rgb(42, 20, 137);
/* oklch */ color: oklch(32.4% 0.175 278.8);
Tailwind
colors: {
  custom: {
    50: '#7357ad',
    500: '#2a1489',
    950: '#000000',
  },
}
SCSS
$custom: #2a1489;
$custom-light: #7357ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1489",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 137
  },
  "hsl": {
    "h": 251.282,
    "s": 74.522,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3236,
    "c": 0.17512,
    "h": 278.8
  },
  "luminance": 0.02799
}

Semantic roles & 50–950 ramp

primary
#2A1489
secondary
#A5BD3C
accent
#F137CE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A1489

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

Preview Lab → · Contrast checker → · Palette generator →

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