#2A1549#2A1549

#2A1549 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.092 H 298.2°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#2A1549
RGBrgb(42, 21, 73)
HSLhsl(264, 55%, 18%)
HSVhsv(264, 71%, 29%)
CMYKcmyk(42.5%, 71.2%, 0%, 71.4%)
CIE-LABlab(12.67, 23.63, -28.60)
CIE-LCHlch(12.67, 37.10, 309.56°)
OKLaboklab(25.74% 0.0437 -0.0814)
OKLCHoklch(25.74% 0.092 298.2)
XYZxyz(2.4253, 1.5096, 6.4656)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1549 #344915
analogous
#151A49 #2A1549 #441549
triadic
#2A1549 #492A15 #15492A
tetradic
#2A1549 #49151A #344915 #154944
square
#2A1549 #49151A #344915 #154944
split-complementary
#2A1549 #494415 #1A4915
monochromatic
#0E0718 #0F0719 #2A1549 #452379 #6130A8

Accessibility & contrast

On white

16.13
#2A1549 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2A1549 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1549
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1549#FFFFFF#000000##FFFFFF
##2A15491.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214B
Deuteranopia (green-blind)
#002048
Tritanopia (blue-blind)
#23212C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a1549;
/* rgb */ color: rgb(42, 21, 73);
/* oklch */ color: oklch(25.7% 0.092 298.2);
Tailwind
colors: {
  custom: {
    50: '#67547c',
    500: '#2a1549',
    950: '#000000',
  },
}
SCSS
$custom: #2a1549;
$custom-light: #67547c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1549",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 73
  },
  "hsl": {
    "h": 264.231,
    "s": 55.319,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25737,
    "c": 0.0924,
    "h": 298.2
  },
  "luminance": 0.0151
}

Semantic roles & 50–950 ramp

primary
#2A1549
secondary
#648139
accent
#DF49A2
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1549

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

Preview Lab → · Contrast checker → · Palette generator →

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