#2A1553#2A1553

#2A1553 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.106 H 293.4°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#2A1553
RGBrgb(42, 21, 83)
HSLhsl(260, 60%, 20%)
HSVhsv(260, 75%, 33%)
CMYKcmyk(49.4%, 74.7%, 0%, 67.5%)
CIE-LABlab(13.55, 26.76, -34.04)
CIE-LCHlch(13.55, 43.30, 308.17°)
OKLaboklab(26.65% 0.0422 -0.0974)
OKLCHoklch(26.65% 0.106 293.4)
XYZxyz(2.7839, 1.6530, 8.3543)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1553 #3E5315
analogous
#151F53 #2A1553 #491553
triadic
#2A1553 #532A15 #15532A
tetradic
#2A1553 #53151F #3E5315 #155349
square
#2A1553 #53151F #3E5315 #155349
split-complementary
#2A1553 #534915 #1F5315
monochromatic
#0C0618 #110922 #2A1553 #432184 #5B2EB5

Accessibility & contrast

On white

15.78
#2A1553 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1553
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1553#FFFFFF#000000##FFFFFF
##2A15531.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002355
Deuteranopia (green-blind)
#002252
Tritanopia (blue-blind)
#1E2432
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a1553;
/* rgb */ color: rgb(42, 21, 83);
/* oklch */ color: oklch(26.6% 0.106 293.4);
Tailwind
colors: {
  custom: {
    50: '#685484',
    500: '#2a1553',
    950: '#000000',
  },
}
SCSS
$custom: #2a1553;
$custom-light: #685484;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1553",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 83
  },
  "hsl": {
    "h": 260.323,
    "s": 59.615,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26647,
    "c": 0.10616,
    "h": 293.4
  },
  "luminance": 0.01653
}

Semantic roles & 50–950 ramp

primary
#2A1553
secondary
#6F8B39
accent
#E345AD
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #2A1553

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

Preview Lab → · Contrast checker → · Palette generator →

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