#2A1452#2A1452

#2A1452 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.106 H 294.2°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#2A1452
RGBrgb(42, 20, 82)
HSLhsl(261, 61%, 20%)
HSVhsv(261, 76%, 32%)
CMYKcmyk(48.8%, 75.6%, 0%, 67.8%)
CIE-LABlab(13.24, 27.04, -33.86)
CIE-LCHlch(13.24, 43.33, 308.61°)
OKLaboklab(26.4% 0.0435 -0.0969)
OKLCHoklch(26.4% 0.106 294.2)
XYZxyz(2.7276, 1.6017, 8.1465)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1452 #3C5214
analogous
#141D52 #2A1452 #491452
triadic
#2A1452 #522A14 #14522A
tetradic
#2A1452 #52141D #3C5214 #145249
square
#2A1452 #52141D #3C5214 #145249
split-complementary
#2A1452 #524914 #1D5214
monochromatic
#0D0619 #110821 #2A1452 #432083 #5C2CB4

Accessibility & contrast

On white

15.90
#2A1452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1452
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1452#FFFFFF#000000##FFFFFF
##2A14521.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1452;
/* rgb */ color: rgb(42, 20, 82);
/* oklch */ color: oklch(26.4% 0.106 294.2);
Tailwind
colors: {
  custom: {
    50: '#685383',
    500: '#2a1452',
    950: '#000000',
  },
}
SCSS
$custom: #2a1452;
$custom-light: #685383;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1452",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 82
  },
  "hsl": {
    "h": 261.29,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.26397,
    "c": 0.10623,
    "h": 294.2
  },
  "luminance": 0.01602
}

Semantic roles & 50–950 ramp

primary
#2A1452
secondary
#6D8A38
accent
#E444AB
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #2A1452

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

Preview Lab → · Contrast checker → · Palette generator →

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