#2A1548#2A1548

#2A1548 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.091 H 298.7°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#2A1548
RGBrgb(42, 21, 72)
HSLhsl(265, 55%, 18%)
HSVhsv(265, 71%, 28%)
CMYKcmyk(41.7%, 70.8%, 0%, 71.8%)
CIE-LABlab(12.59, 23.32, -28.04)
CIE-LCHlch(12.59, 36.47, 309.75°)
OKLaboklab(25.65% 0.0438 -0.0798)
OKLCHoklch(25.65% 0.091 298.7)
XYZxyz(2.3924, 1.4964, 6.2924)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1548 #334815
analogous
#151948 #2A1548 #431548
triadic
#2A1548 #482A15 #15482A
tetradic
#2A1548 #481519 #334815 #154843
square
#2A1548 #481519 #334815 #154843
split-complementary
#2A1548 #484315 #194815
monochromatic
#0E0718 #0E0719 #2A1548 #462377 #6131A7

Accessibility & contrast

On white

16.16
#2A1548 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2A1548 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1548
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1548#FFFFFF#000000##FFFFFF
##2A15481.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214A
Deuteranopia (green-blind)
#012047
Tritanopia (blue-blind)
#23202C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a1548;
/* rgb */ color: rgb(42, 21, 72);
/* oklch */ color: oklch(25.7% 0.091 298.7);
Tailwind
colors: {
  custom: {
    50: '#66537b',
    500: '#2a1548',
    950: '#000000',
  },
}
SCSS
$custom: #2a1548;
$custom-light: #66537b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1548",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 72
  },
  "hsl": {
    "h": 264.706,
    "s": 54.839,
    "l": 18.235
  },
  "oklch": {
    "l": 0.2565,
    "c": 0.091,
    "h": 298.7
  },
  "luminance": 0.01496
}

Semantic roles & 50–950 ramp

primary
#2A1548
secondary
#638039
accent
#DE4AA1
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1548

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

Preview Lab → · Contrast checker → · Palette generator →

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