#2A1471#2A1471

#2A1471 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.146 H 283.8°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#2A1471
RGBrgb(42, 20, 113)
HSLhsl(254, 70%, 26%)
HSVhsv(254, 82%, 44%)
CMYKcmyk(62.8%, 82.3%, 0%, 55.7%)
CIE-LABlab(16.43, 36.78, -49.24)
CIE-LCHlch(16.43, 61.46, 306.76°)
OKLaboklab(29.61% 0.0349 -0.1419)
OKLCHoklch(29.61% 0.146 283.8)
XYZxyz(4.1847, 2.1845, 15.8207)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1471 #5B7114
analogous
#142C71 #2A1471 #581471
triadic
#2A1471 #712A14 #14712A
tetradic
#2A1471 #71142C #5B7114 #147158
square
#2A1471 #71142C #5B7114 #147158
split-complementary
#2A1471 #715814 #2C7114
monochromatic
#0A051A #170B3D #2A1471 #3D1DA5 #5127D9

Accessibility & contrast

On white

14.61
#2A1471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2A1471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1471
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1471#FFFFFF#000000##FFFFFF
##2A14711.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a1471;
/* rgb */ color: rgb(42, 20, 113);
/* oklch */ color: oklch(29.6% 0.146 283.8);
Tailwind
colors: {
  custom: {
    50: '#6e559b',
    500: '#2a1471',
    950: '#000000',
  },
}
SCSS
$custom: #2a1471;
$custom-light: #6e559b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1471",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 113
  },
  "hsl": {
    "h": 254.194,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29611,
    "c": 0.14616,
    "h": 283.8
  },
  "luminance": 0.02185
}

Semantic roles & 50–950 ramp

primary
#2A1471
secondary
#8DA739
accent
#ED3BC3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1471

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

Preview Lab → · Contrast checker → · Palette generator →

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