#2A1261#2A1261

#2A1261 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.128 H 288.9°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#2A1261
RGBrgb(42, 18, 97)
HSLhsl(258, 69%, 23%)
HSVhsv(258, 81%, 38%)
CMYKcmyk(56.7%, 81.4%, 0%, 62%)
CIE-LABlab(14.33, 32.84, -42.18)
CIE-LCHlch(14.33, 53.45, 307.90°)
OKLaboklab(27.63% 0.0415 -0.1213)
OKLCHoklch(27.63% 0.128 288.9)
XYZxyz(3.3282, 1.7878, 11.4766)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1261 #496112
analogous
#122161 #2A1261 #521261
triadic
#2A1261 #612A12 #12612A
tetradic
#2A1261 #611221 #496112 #126152
square
#2A1261 #611221 #496112 #126152
split-complementary
#2A1261 #615212 #216112
monochromatic
#0B051A #14082D #2A1261 #401C95 #5725C8

Accessibility & contrast

On white

15.47
#2A1261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2A1261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1261
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1261#FFFFFF#000000##FFFFFF
##2A12611.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002663
Deuteranopia (green-blind)
#002260
Tritanopia (blue-blind)
#142839
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a1261;
/* rgb */ color: rgb(42, 18, 97);
/* oklch */ color: oklch(27.6% 0.128 288.9);
Tailwind
colors: {
  custom: {
    50: '#6b538f',
    500: '#2a1261',
    950: '#000000',
  },
}
SCSS
$custom: #2a1261;
$custom-light: #6b538f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1261",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 97
  },
  "hsl": {
    "h": 258.228,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27626,
    "c": 0.12821,
    "h": 288.9
  },
  "luminance": 0.01788
}

Semantic roles & 50–950 ramp

primary
#2A1261
secondary
#7B9936
accent
#EC3CB6
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A1261

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

Preview Lab → · Contrast checker → · Palette generator →

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