#2A1671#2A1671

#2A1671 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.144 H 283.5°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#2A1671
RGBrgb(42, 22, 113)
HSLhsl(253, 67%, 26%)
HSVhsv(253, 81%, 44%)
CMYKcmyk(62.8%, 80.5%, 0%, 55.7%)
CIE-LABlab(16.79, 35.75, -48.64)
CIE-LCHlch(16.79, 60.37, 306.31°)
OKLaboklab(29.86% 0.0336 -0.1402)
OKLCHoklch(29.86% 0.144 283.5)
XYZxyz(4.2215, 2.2580, 15.8330)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1671 #5D7116
analogous
#163071 #2A1671 #581671
triadic
#2A1671 #712A16 #16712A
tetradic
#2A1671 #711630 #5D7116 #167158
square
#2A1671 #711630 #5D7116 #167158
split-complementary
#2A1671 #715816 #307116
monochromatic
#0A051A #170C3E #2A1671 #3D20A4 #512CD6

Accessibility & contrast

On white

14.47
#2A1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2A1671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1671
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1671#FFFFFF#000000##FFFFFF
##2A16711.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1671;
/* rgb */ color: rgb(42, 22, 113);
/* oklch */ color: oklch(29.9% 0.144 283.5);
Tailwind
colors: {
  custom: {
    50: '#6e569b',
    500: '#2a1671',
    950: '#000000',
  },
}
SCSS
$custom: #2a1671;
$custom-light: #6e569b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1671",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 253.187,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29862,
    "c": 0.14418,
    "h": 283.5
  },
  "luminance": 0.02258
}

Semantic roles & 50–950 ramp

primary
#2A1671
secondary
#8FA73C
accent
#EA3EC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1671

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

Preview Lab → · Contrast checker → · Palette generator →

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