#2A1884#2A1884

#2A1884 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.166 H 279.2°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#2A1884
RGBrgb(42, 24, 132)
HSLhsl(250, 69%, 31%)
HSVhsv(250, 82%, 52%)
CMYKcmyk(68.2%, 81.8%, 0%, 48.2%)
CIE-LABlab(19.27, 40.72, -56.69)
CIE-LCHlch(19.27, 69.80, 305.69°)
OKLaboklab(32.23% 0.0265 -0.1637)
OKLCHoklch(32.23% 0.166 279.2)
XYZxyz(5.4450, 2.8110, 22.0810)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1884 #728418
analogous
#183C84 #2A1884 #601884
triadic
#2A1884 #842A18 #18842A
tetradic
#2A1884 #84183C #728418 #188460
square
#2A1884 #84183C #728418 #188460
split-complementary
#2A1884 #846018 #3C8418
monochromatic
#09051C #1A0F50 #2A1884 #3A21B8 #563BDB

Accessibility & contrast

On white

13.44
#2A1884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1884
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1884#FFFFFF#000000##FFFFFF
##2A18841.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002A82
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1884;
/* rgb */ color: rgb(42, 24, 132);
/* oklch */ color: oklch(32.2% 0.166 279.2);
Tailwind
colors: {
  custom: {
    50: '#7259a9',
    500: '#2a1884',
    950: '#000000',
  },
}
SCSS
$custom: #2a1884;
$custom-light: #7259a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1884",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 250,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32225,
    "c": 0.16585,
    "h": 279.2
  },
  "luminance": 0.02811
}

Semantic roles & 50–950 ramp

primary
#2A1884
secondary
#A4B840
accent
#EC3CCF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1884

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

Preview Lab → · Contrast checker → · Palette generator →

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