#2A1071#2A1071

#2A1071 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.150 H 284.5°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#2A1071
RGBrgb(42, 16, 113)
HSLhsl(256, 75%, 25%)
HSVhsv(256, 86%, 44%)
CMYKcmyk(62.8%, 85.8%, 0%, 55.7%)
CIE-LABlab(15.77, 38.69, -50.32)
CIE-LCHlch(15.77, 63.47, 307.56°)
OKLaboklab(29.16% 0.0374 -0.145)
OKLCHoklch(29.16% 0.15 284.5)
XYZxyz(4.1199, 2.0548, 15.7991)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1071 #577110
analogous
#102771 #2A1071 #5A1071
triadic
#2A1071 #712A10 #10712A
tetradic
#2A1071 #711027 #577110 #10715A
square
#2A1071 #711027 #577110 #10715A
split-complementary
#2A1071 #715A10 #277110
monochromatic
#0A041B #16083B #2A1071 #3E18A7 #521FDC

Accessibility & contrast

On white

14.88
#2A1071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2A1071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1071
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1071#FFFFFF#000000##FFFFFF
##2A10711.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#002E42
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a1071;
/* rgb */ color: rgb(42, 16, 113);
/* oklch */ color: oklch(29.2% 0.150 284.5);
Tailwind
colors: {
  custom: {
    50: '#6e539b',
    500: '#2a1071',
    950: '#000000',
  },
}
SCSS
$custom: #2a1071;
$custom-light: #6e539b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1071",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 256.082,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29157,
    "c": 0.14977,
    "h": 284.5
  },
  "luminance": 0.02055
}

Semantic roles & 50–950 ramp

primary
#2A1071
secondary
#89A934
accent
#F236BF
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1071

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

Preview Lab → · Contrast checker → · Palette generator →

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