#2A1381#2A1381

#2A1381 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.3% C 0.166 H 280.4°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#2A1381
RGBrgb(42, 19, 129)
HSLhsl(253, 74%, 29%)
HSVhsv(253, 85%, 51%)
CMYKcmyk(67.4%, 85.3%, 0%, 49.4%)
CIE-LABlab(18.11, 42.16, -56.71)
CIE-LCHlch(18.11, 70.67, 306.63°)
OKLaboklab(31.32% 0.03 -0.1637)
OKLCHoklch(31.32% 0.166 280.4)
XYZxyz(5.1489, 2.5426, 20.9840)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1381 #6A8113
analogous
#133381 #2A1381 #611381
triadic
#2A1381 #812A13 #13812A
tetradic
#2A1381 #811333 #6A8113 #138161
square
#2A1381 #811333 #6A8113 #138161
split-complementary
#2A1381 #816113 #338113
monochromatic
#09041B #190B4C #2A1381 #3B1BB6 #532EE0

Accessibility & contrast

On white

13.92
#2A1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2A1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1381
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1381#FFFFFF#000000##FFFFFF
##2A13811.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a1381;
/* rgb */ color: rgb(42, 19, 129);
/* oklch */ color: oklch(31.3% 0.166 280.4);
Tailwind
colors: {
  custom: {
    50: '#7156a7',
    500: '#2a1381',
    950: '#000000',
  },
}
SCSS
$custom: #2a1381;
$custom-light: #7156a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1381",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 252.545,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3132,
    "c": 0.16643,
    "h": 280.4
  },
  "luminance": 0.02543
}

Semantic roles & 50–950 ramp

primary
#2A1381
secondary
#9CB63A
accent
#F137CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A1381

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

Preview Lab → · Contrast checker → · Palette generator →

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