#2A1159#2A1159

#2A1159 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.119 H 292.1°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#2A1159
RGBrgb(42, 17, 89)
HSLhsl(261, 68%, 21%)
HSVhsv(261, 81%, 35%)
CMYKcmyk(52.8%, 80.9%, 0%, 65.1%)
CIE-LABlab(13.32, 30.91, -38.48)
CIE-LCHlch(13.32, 49.36, 308.77°)
OKLaboklab(26.66% 0.0449 -0.1105)
OKLCHoklch(26.66% 0.119 292.1)
XYZxyz(2.9580, 1.6143, 9.6050)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1159 #405911
analogous
#111C59 #2A1159 #4E1159
triadic
#2A1159 #592A11 #11592A
tetradic
#2A1159 #59111C #405911 #11594E
square
#2A1159 #59111C #405911 #11594E
split-complementary
#2A1159 #594E11 #1C5911
monochromatic
#0C051A #120726 #2A1159 #421B8C #5A25C0

Accessibility & contrast

On white

15.88
#2A1159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2A1159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1159
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1159#FFFFFF#000000##FFFFFF
##2A11591.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235B
Deuteranopia (green-blind)
#002158
Tritanopia (blue-blind)
#1B2534
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a1159;
/* rgb */ color: rgb(42, 17, 89);
/* oklch */ color: oklch(26.7% 0.119 292.1);
Tailwind
colors: {
  custom: {
    50: '#695289',
    500: '#2a1159',
    950: '#000000',
  },
}
SCSS
$custom: #2a1159;
$custom-light: #695289;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1159",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 260.833,
    "s": 67.925,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26662,
    "c": 0.11923,
    "h": 292.1
  },
  "luminance": 0.01614
}

Semantic roles & 50–950 ramp

primary
#2A1159
secondary
#719234
accent
#EB3DAE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A1159

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

Preview Lab → · Contrast checker → · Palette generator →

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