#2A0540#2A0540

#2A0540 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.7% C 0.104 H 308.5°. Best body text is #FFFFFF at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#2A0540
RGBrgb(42, 5, 64)
HSLhsl(278, 86%, 14%)
HSVhsv(278, 92%, 25%)
CMYKcmyk(34.4%, 92.2%, 0%, 74.9%)
CIE-LABlab(8.75, 29.84, -28.64)
CIE-LCHlch(8.75, 41.36, 316.18°)
OKLaboklab(22.7% 0.0648 -0.0814)
OKLCHoklch(22.7% 0.104 308.5)
XYZxyz(1.9343, 0.9710, 4.9350)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0540 #1B4005
analogous
#0C0540 #2A0540 #400538
triadic
#2A0540 #402A05 #05402A
tetradic
#2A0540 #400C05 #1B4005 #053840
square
#2A0540 #400C05 #1B4005 #053840
split-complementary
#2A0540 #384005 #05400C
monochromatic
#13021C #13021C #2A0540 #4F0979 #750EB2

Accessibility & contrast

On white

17.58
#2A0540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#2A0540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0540
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0540#FFFFFF#000000##FFFFFF
##2A05401.0017.581.1917.58
#FFFFFF17.581.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#261423
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2a0540;
/* rgb */ color: rgb(42, 5, 64);
/* oklch */ color: oklch(22.7% 0.104 308.5);
Tailwind
colors: {
  custom: {
    50: '#674a75',
    500: '#2a0540',
    950: '#000000',
  },
}
SCSS
$custom: #2a0540;
$custom-light: #674a75;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0540",
  "rgb": {
    "r": 42,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 277.627,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.227,
    "c": 0.10408,
    "h": 308.5
  },
  "luminance": 0.00971
}

Semantic roles & 50–950 ramp

primary
#2A0540
secondary
#448120
accent
#FC2C7A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A0540

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

Preview Lab → · Contrast checker → · Palette generator →

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