#2A1952#2A1952

#2A1952 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.099 H 292.3°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#2A1952
RGBrgb(42, 25, 82)
HSLhsl(258, 53%, 21%)
HSVhsv(258, 70%, 32%)
CMYKcmyk(48.8%, 69.5%, 0%, 67.8%)
CIE-LABlab(14.38, 23.93, -32.01)
CIE-LCHlch(14.38, 39.96, 306.78°)
OKLaboklab(27.22% 0.0375 -0.0915)
OKLCHoklch(27.22% 0.099 292.3)
XYZxyz(2.8250, 1.7966, 8.1789)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1952 #415219
analogous
#192452 #2A1952 #461952
triadic
#2A1952 #522A19 #19522A
tetradic
#2A1952 #521924 #415219 #195246
square
#2A1952 #521924 #415219 #195246
split-complementary
#2A1952 #524619 #245219
monochromatic
#0C0717 #120B23 #2A1952 #422781 #5A36B0

Accessibility & contrast

On white

15.45
#2A1952 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2A1952 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1952
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1952#FFFFFF#000000##FFFFFF
##2A19521.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#1E2632
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a1952;
/* rgb */ color: rgb(42, 25, 82);
/* oklch */ color: oklch(27.2% 0.099 292.3);
Tailwind
colors: {
  custom: {
    50: '#685783',
    500: '#2a1952',
    950: '#000000',
  },
}
SCSS
$custom: #2a1952;
$custom-light: #685783;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1952",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 82
  },
  "hsl": {
    "h": 257.895,
    "s": 53.271,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27218,
    "c": 0.09885,
    "h": 292.3
  },
  "luminance": 0.01797
}

Semantic roles & 50–950 ramp

primary
#2A1952
secondary
#72883E
accent
#DD4BB1
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #2A1952

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

Preview Lab → · Contrast checker → · Palette generator →

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