#2A1151#2A1151

#2A1151 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.109 H 295.6°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#2A1151
RGBrgb(42, 17, 81)
HSLhsl(263, 65%, 19%)
HSVhsv(263, 79%, 32%)
CMYKcmyk(48.1%, 79%, 0%, 68.2%)
CIE-LABlab(12.53, 28.47, -34.34)
CIE-LCHlch(12.53, 44.61, 309.66°)
OKLaboklab(25.86% 0.047 -0.0983)
OKLCHoklch(25.86% 0.109 295.6)
XYZxyz(2.6401, 1.4872, 7.9309)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1151 #385111
analogous
#111851 #2A1151 #4A1151
triadic
#2A1151 #512A11 #11512A
tetradic
#2A1151 #511118 #385111 #11514A
square
#2A1151 #511118 #385111 #11514A
split-complementary
#2A1151 #514A11 #185111
monochromatic
#0D0519 #10061E #2A1151 #441C84 #5E26B6

Accessibility & contrast

On white

16.19
#2A1151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1151
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1151#FFFFFF#000000##FFFFFF
##2A11511.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#002050
Tritanopia (blue-blind)
#1F2130
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a1151;
/* rgb */ color: rgb(42, 17, 81);
/* oklch */ color: oklch(25.9% 0.109 295.6);
Tailwind
colors: {
  custom: {
    50: '#685182',
    500: '#2a1151',
    950: '#000000',
  },
}
SCSS
$custom: #2a1151;
$custom-light: #685182;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1151",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 81
  },
  "hsl": {
    "h": 263.438,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.2586,
    "c": 0.10898,
    "h": 295.6
  },
  "luminance": 0.01487
}

Semantic roles & 50–950 ramp

primary
#2A1151
secondary
#688A34
accent
#E840A6
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A1151

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

Preview Lab → · Contrast checker → · Palette generator →

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