#2A1281#2A1281

#2A1281 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.167 H 280.5°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#2A1281
RGBrgb(42, 18, 129)
HSLhsl(253, 76%, 29%)
HSVhsv(253, 86%, 51%)
CMYKcmyk(67.4%, 86%, 0%, 49.4%)
CIE-LABlab(17.96, 42.60, -56.96)
CIE-LCHlch(17.96, 71.13, 306.79°)
OKLaboklab(31.22% 0.0305 -0.1644)
OKLCHoklch(31.22% 0.167 280.5)
XYZxyz(5.1323, 2.5094, 20.9785)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1281 #698112
analogous
#123281 #2A1281 #621281
triadic
#2A1281 #812A12 #12812A
tetradic
#2A1281 #811232 #698112 #128162
square
#2A1281 #811232 #698112 #128162
split-complementary
#2A1281 #816212 #328112
monochromatic
#09041B #190B4B #2A1281 #3B19B7 #532CE2

Accessibility & contrast

On white

13.98
#2A1281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2A1281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1281
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1281#FFFFFF#000000##FFFFFF
##2A12811.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1281;
/* rgb */ color: rgb(42, 18, 129);
/* oklch */ color: oklch(31.2% 0.167 280.5);
Tailwind
colors: {
  custom: {
    50: '#7255a7',
    500: '#2a1281',
    950: '#000000',
  },
}
SCSS
$custom: #2a1281;
$custom-light: #7255a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1281",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 252.973,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31217,
    "c": 0.1672,
    "h": 280.5
  },
  "luminance": 0.0251
}

Semantic roles & 50–950 ramp

primary
#2A1281
secondary
#9BB738
accent
#F236C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A1281

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

Preview Lab → · Contrast checker → · Palette generator →

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