#2A1588#2A1588

#2A1588 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.173 H 278.9°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#2A1588
RGBrgb(42, 21, 136)
HSLhsl(251, 73%, 31%)
HSVhsv(251, 85%, 53%)
CMYKcmyk(69.1%, 84.6%, 0%, 46.7%)
CIE-LABlab(19.25, 43.38, -59.25)
CIE-LCHlch(19.25, 73.43, 306.21°)
OKLaboklab(32.35% 0.0267 -0.1711)
OKLCHoklch(32.35% 0.173 278.9)
XYZxyz(5.6655, 2.8057, 23.5308)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1588 #738815
analogous
#153988 #2A1588 #631588
triadic
#2A1588 #882A15 #15882A
tetradic
#2A1588 #881539 #738815 #158863
square
#2A1588 #881539 #738815 #158863
split-complementary
#2A1588 #886315 #398815
monochromatic
#09051E #1A0D53 #2A1588 #3A1DBD #5637E0

Accessibility & contrast

On white

13.45
#2A1588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1588
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1588#FFFFFF#000000##FFFFFF
##2A15881.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002A86
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1588;
/* rgb */ color: rgb(42, 21, 136);
/* oklch */ color: oklch(32.3% 0.173 278.9);
Tailwind
colors: {
  custom: {
    50: '#7357ac',
    500: '#2a1588',
    950: '#000000',
  },
}
SCSS
$custom: #2a1588;
$custom-light: #7357ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1588",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 136
  },
  "hsl": {
    "h": 250.957,
    "s": 73.248,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32346,
    "c": 0.17317,
    "h": 278.9
  },
  "luminance": 0.02806
}

Semantic roles & 50–950 ramp

primary
#2A1588
secondary
#A5BC3D
accent
#F038CE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A1588

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

Preview Lab → · Contrast checker → · Palette generator →

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