#2A1652#2A1652

#2A1652 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.103 H 293.5°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#2A1652
RGBrgb(42, 22, 82)
HSLhsl(260, 58%, 20%)
HSVhsv(260, 73%, 32%)
CMYKcmyk(48.8%, 73.2%, 0%, 67.8%)
CIE-LABlab(13.68, 25.83, -33.14)
CIE-LCHlch(13.68, 42.02, 307.93°)
OKLaboklab(26.71% 0.0412 -0.0948)
OKLCHoklch(26.71% 0.103 293.5)
XYZxyz(2.7643, 1.6752, 8.1587)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1652 #3E5216
analogous
#162052 #2A1652 #481652
triadic
#2A1652 #522A16 #16522A
tetradic
#2A1652 #521620 #3E5216 #165248
square
#2A1652 #521620 #3E5216 #165248
split-complementary
#2A1652 #524816 #205216
monochromatic
#0C0618 #110922 #2A1652 #432382 #5B30B3

Accessibility & contrast

On white

15.73
#2A1652 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2A1652 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1652
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1652#FFFFFF#000000##FFFFFF
##2A16521.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#002251
Tritanopia (blue-blind)
#1F2531
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a1652;
/* rgb */ color: rgb(42, 22, 82);
/* oklch */ color: oklch(26.7% 0.103 293.5);
Tailwind
colors: {
  custom: {
    50: '#685583',
    500: '#2a1652',
    950: '#000000',
  },
}
SCSS
$custom: #2a1652;
$custom-light: #685583;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1652",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 82
  },
  "hsl": {
    "h": 260,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26713,
    "c": 0.10335,
    "h": 293.5
  },
  "luminance": 0.01675
}

Semantic roles & 50–950 ramp

primary
#2A1652
secondary
#6F893A
accent
#E147AE
background
#F6F4F8
surface
#EBE8EF
border
#C6C4CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #2A1652

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

Preview Lab → · Contrast checker → · Palette generator →

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