#2A1352#2A1352

#2A1352 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.108 H 294.5°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#2A1352
RGBrgb(42, 19, 82)
HSLhsl(262, 62%, 20%)
HSVhsv(262, 77%, 32%)
CMYKcmyk(48.8%, 76.8%, 0%, 67.8%)
CIE-LABlab(13.03, 27.63, -34.21)
CIE-LCHlch(13.03, 43.97, 308.93°)
OKLaboklab(26.25% 0.0446 -0.0979)
OKLCHoklch(26.25% 0.108 294.5)
XYZxyz(2.7103, 1.5671, 8.1407)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1352 #3B5213
analogous
#131B52 #2A1352 #4A1352
triadic
#2A1352 #522A13 #13522A
tetradic
#2A1352 #52131B #3B5213 #13524A
square
#2A1352 #52131B #3B5213 #13524A
split-complementary
#2A1352 #524A13 #1B5213
monochromatic
#0D0619 #110720 #2A1352 #431F84 #5D2AB5

Accessibility & contrast

On white

15.99
#2A1352 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2A1352 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1352
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1352#FFFFFF#000000##FFFFFF
##2A13521.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#1F2331
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a1352;
/* rgb */ color: rgb(42, 19, 82);
/* oklch */ color: oklch(26.2% 0.108 294.5);
Tailwind
colors: {
  custom: {
    50: '#685383',
    500: '#2a1352',
    950: '#000000',
  },
}
SCSS
$custom: #2a1352;
$custom-light: #685383;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1352",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 82
  },
  "hsl": {
    "h": 261.905,
    "s": 62.376,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26246,
    "c": 0.10761,
    "h": 294.5
  },
  "luminance": 0.01567
}

Semantic roles & 50–950 ramp

primary
#2A1352
secondary
#6C8A36
accent
#E542AA
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #2A1352

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

Preview Lab → · Contrast checker → · Palette generator →

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