#2A1552#2A1552

#2A1552 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.105 H 293.8°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#2A1552
RGBrgb(42, 21, 82)
HSLhsl(261, 59%, 20%)
HSVhsv(261, 74%, 32%)
CMYKcmyk(48.8%, 74.4%, 0%, 67.8%)
CIE-LABlab(13.46, 26.44, -33.51)
CIE-LCHlch(13.46, 42.68, 308.28°)
OKLaboklab(26.55% 0.0424 -0.0959)
OKLCHoklch(26.55% 0.105 293.8)
XYZxyz(2.7456, 1.6377, 8.1525)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1552 #3D5215
analogous
#151E52 #2A1552 #481552
triadic
#2A1552 #522A15 #15522A
tetradic
#2A1552 #52151E #3D5215 #155248
square
#2A1552 #52151E #3D5215 #155248
split-complementary
#2A1552 #524815 #1E5215
monochromatic
#0C0618 #110921 #2A1552 #432183 #5C2EB3

Accessibility & contrast

On white

15.82
#2A1552 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1552
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1552#FFFFFF#000000##FFFFFF
##2A15521.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#1F2431
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a1552;
/* rgb */ color: rgb(42, 21, 82);
/* oklch */ color: oklch(26.6% 0.105 293.8);
Tailwind
colors: {
  custom: {
    50: '#685483',
    500: '#2a1552',
    950: '#000000',
  },
}
SCSS
$custom: #2a1552;
$custom-light: #685483;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1552",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 82
  },
  "hsl": {
    "h": 260.656,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26553,
    "c": 0.10481,
    "h": 293.8
  },
  "luminance": 0.01638
}

Semantic roles & 50–950 ramp

primary
#2A1552
secondary
#6E8A39
accent
#E245AC
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #2A1552

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

Preview Lab → · Contrast checker → · Palette generator →

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