#2A1251#2A1251

#2A1251 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.108 H 295.3°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#2A1251
RGBrgb(42, 18, 81)
HSLhsl(263, 64%, 19%)
HSVhsv(263, 78%, 32%)
CMYKcmyk(48.1%, 77.8%, 0%, 68.2%)
CIE-LABlab(12.73, 27.90, -34.01)
CIE-LCHlch(12.73, 43.99, 309.36°)
OKLaboklab(26% 0.046 -0.0974)
OKLCHoklch(26% 0.108 295.3)
XYZxyz(2.6560, 1.5189, 7.9362)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1251 #395112
analogous
#121A51 #2A1251 #4A1251
triadic
#2A1251 #512A12 #12512A
tetradic
#2A1251 #51121A #395112 #12514A
square
#2A1251 #51121A #395112 #12514A
split-complementary
#2A1251 #514A12 #1A5112
monochromatic
#0D0619 #10071F #2A1251 #441D83 #5E28B5

Accessibility & contrast

On white

16.11
#2A1251 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2A1251 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1251
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1251#FFFFFF#000000##FFFFFF
##2A12511.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#002050
Tritanopia (blue-blind)
#1F2230
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a1251;
/* rgb */ color: rgb(42, 18, 81);
/* oklch */ color: oklch(26.0% 0.108 295.3);
Tailwind
colors: {
  custom: {
    50: '#685282',
    500: '#2a1251',
    950: '#000000',
  },
}
SCSS
$custom: #2a1251;
$custom-light: #685282;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1251",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 81
  },
  "hsl": {
    "h": 262.857,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26003,
    "c": 0.10765,
    "h": 295.3
  },
  "luminance": 0.01519
}

Semantic roles & 50–950 ramp

primary
#2A1251
secondary
#6A8A35
accent
#E741A8
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A1251

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

Preview Lab → · Contrast checker → · Palette generator →

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