#2A1589#2A1589

#2A1589 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.5% C 0.174 H 278.7°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#2A1589
RGBrgb(42, 21, 137)
HSLhsl(251, 73%, 31%)
HSVhsv(251, 85%, 54%)
CMYKcmyk(69.3%, 84.7%, 0%, 46.3%)
CIE-LABlab(19.37, 43.69, -59.68)
CIE-LCHlch(19.37, 73.96, 306.21°)
OKLaboklab(32.46% 0.0264 -0.1723)
OKLCHoklch(32.46% 0.174 278.7)
XYZxyz(5.7369, 2.8342, 23.9068)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1589 #748915
analogous
#153A89 #2A1589 #641589
triadic
#2A1589 #892A15 #15892A
tetradic
#2A1589 #89153A #748915 #158964
square
#2A1589 #89153A #748915 #158964
split-complementary
#2A1589 #896415 #3A8915
monochromatic
#09051F #1A0D54 #2A1589 #3A1DBE #5638E0

Accessibility & contrast

On white

13.40
#2A1589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2A1589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1589
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1589#FFFFFF#000000##FFFFFF
##2A15891.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1589;
/* rgb */ color: rgb(42, 21, 137);
/* oklch */ color: oklch(32.5% 0.174 278.7);
Tailwind
colors: {
  custom: {
    50: '#7357ad',
    500: '#2a1589',
    950: '#000000',
  },
}
SCSS
$custom: #2a1589;
$custom-light: #7357ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1589",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 250.862,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32463,
    "c": 0.17436,
    "h": 278.7
  },
  "luminance": 0.02835
}

Semantic roles & 50–950 ramp

primary
#2A1589
secondary
#A6BD3D
accent
#F038CF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A1589

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

Preview Lab → · Contrast checker → · Palette generator →

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