#2A1476#2A1476

#2A1476 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.152 H 282.6°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#2A1476
RGBrgb(42, 20, 118)
HSLhsl(253, 71%, 27%)
HSVhsv(253, 83%, 46%)
CMYKcmyk(64.4%, 83.1%, 0%, 53.7%)
CIE-LABlab(16.99, 38.34, -51.54)
CIE-LCHlch(16.99, 64.23, 306.64°)
OKLaboklab(30.17% 0.0333 -0.1486)
OKLCHoklch(30.17% 0.152 282.6)
XYZxyz(4.4740, 2.3002, 17.3443)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1476 #607614
analogous
#142F76 #2A1476 #5B1476
triadic
#2A1476 #762A14 #14762A
tetradic
#2A1476 #76142F #607614 #14765B
square
#2A1476 #76142F #607614 #14765B
split-complementary
#2A1476 #765B14 #2F7614
monochromatic
#09041A #170B42 #2A1476 #3D1DAA #512ADB

Accessibility & contrast

On white

14.38
#2A1476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2A1476 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1476
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1476#FFFFFF#000000##FFFFFF
##2A14761.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002674
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a1476;
/* rgb */ color: rgb(42, 20, 118);
/* oklch */ color: oklch(30.2% 0.152 282.6);
Tailwind
colors: {
  custom: {
    50: '#6f559f',
    500: '#2a1476',
    950: '#000000',
  },
}
SCSS
$custom: #2a1476;
$custom-light: #6f559f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1476",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 118
  },
  "hsl": {
    "h": 253.469,
    "s": 71.014,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30169,
    "c": 0.15233,
    "h": 282.6
  },
  "luminance": 0.02301
}

Semantic roles & 50–950 ramp

primary
#2A1476
secondary
#92AC3A
accent
#EE3AC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2A1476

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

Preview Lab → · Contrast checker → · Palette generator →

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