#2A1554#2A1554

#2A1554 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.108 H 293.0°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#2A1554
RGBrgb(42, 21, 84)
HSLhsl(260, 60%, 21%)
HSVhsv(260, 75%, 33%)
CMYKcmyk(50%, 75%, 0%, 67.1%)
CIE-LABlab(13.64, 27.07, -34.57)
CIE-LCHlch(13.64, 43.91, 308.07°)
OKLaboklab(26.74% 0.042 -0.099)
OKLCHoklch(26.74% 0.108 293)
XYZxyz(2.8228, 1.6686, 8.5591)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1554 #3F5415
analogous
#151F54 #2A1554 #491554
triadic
#2A1554 #542A15 #15542A
tetradic
#2A1554 #54151F #3F5415 #155449
square
#2A1554 #54151F #3F5415 #155449
split-complementary
#2A1554 #544915 #1F5415
monochromatic
#0C0618 #120923 #2A1554 #422185 #5B2DB6

Accessibility & contrast

On white

15.74
#2A1554 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2A1554 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1554
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1554#FFFFFF#000000##FFFFFF
##2A15541.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002456
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#1E2532
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a1554;
/* rgb */ color: rgb(42, 21, 84);
/* oklch */ color: oklch(26.7% 0.108 293.0);
Tailwind
colors: {
  custom: {
    50: '#685485',
    500: '#2a1554',
    950: '#000000',
  },
}
SCSS
$custom: #2a1554;
$custom-light: #685485;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1554",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 84
  },
  "hsl": {
    "h": 260,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26742,
    "c": 0.10752,
    "h": 293
  },
  "luminance": 0.01669
}

Semantic roles & 50–950 ramp

primary
#2A1554
secondary
#708C39
accent
#E345AE
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #2A1554

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

Preview Lab → · Contrast checker → · Palette generator →

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