#2A0541#2A0541

#2A0541 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.105 H 307.8°. Best body text is #FFFFFF at 17.55:1 contrast (WCAG AA passes).

Color values

HEX#2A0541
RGBrgb(42, 5, 65)
HSLhsl(277, 86%, 14%)
HSVhsv(277, 92%, 25%)
CMYKcmyk(35.4%, 92.3%, 0%, 74.5%)
CIE-LABlab(8.84, 30.09, -29.19)
CIE-LCHlch(8.84, 41.93, 315.87°)
OKLaboklab(22.8% 0.0645 -0.0831)
OKLCHoklch(22.8% 0.105 307.8)
XYZxyz(1.9630, 0.9825, 5.0862)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0541 #1C4105
analogous
#0C0541 #2A0541 #41053A
triadic
#2A0541 #412A05 #05412A
tetradic
#2A0541 #410C05 #1C4105 #053A41
square
#2A0541 #410C05 #1C4105 #053A41
split-complementary
#2A0541 #3A4105 #05410C
monochromatic
#12021C #12021C #2A0541 #4F097A #730EB3

Accessibility & contrast

On white

17.55
#2A0541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2A0541 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0541
17.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0541#FFFFFF#000000##FFFFFF
##2A05411.0017.551.2017.55
#FFFFFF17.551.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001843
Deuteranopia (green-blind)
#001940
Tritanopia (blue-blind)
#261524
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2a0541;
/* rgb */ color: rgb(42, 5, 65);
/* oklch */ color: oklch(22.8% 0.105 307.8);
Tailwind
colors: {
  custom: {
    50: '#674a76',
    500: '#2a0541',
    950: '#000000',
  },
}
SCSS
$custom: #2a0541;
$custom-light: #674a76;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0541",
  "rgb": {
    "r": 42,
    "g": 5,
    "b": 65
  },
  "hsl": {
    "h": 277,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.22798,
    "c": 0.10515,
    "h": 307.8
  },
  "luminance": 0.00982
}

Semantic roles & 50–950 ramp

primary
#2A0541
secondary
#468120
accent
#FC2C7C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A0541

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

Preview Lab → · Contrast checker → · Palette generator →

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