#2A0542#2A0542

#2A0542 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.106 H 307.1°. Best body text is #FFFFFF at 17.52:1 contrast (WCAG AA passes).

Color values

HEX#2A0542
RGBrgb(42, 5, 66)
HSLhsl(276, 86%, 14%)
HSVhsv(276, 92%, 26%)
CMYKcmyk(36.4%, 92.4%, 0%, 74.1%)
CIE-LABlab(8.94, 30.35, -29.74)
CIE-LCHlch(8.94, 42.49, 315.58°)
OKLaboklab(22.9% 0.0641 -0.0847)
OKLCHoklch(22.9% 0.106 307.1)
XYZxyz(1.9923, 0.9942, 5.2401)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0542 #1D4205
analogous
#0C0542 #2A0542 #42053C
triadic
#2A0542 #422A05 #05422A
tetradic
#2A0542 #420C05 #1D4205 #053C42
square
#2A0542 #420C05 #1D4205 #053C42
split-complementary
#2A0542 #3C4205 #05420C
monochromatic
#12021C #12021C #2A0542 #4E097B #720EB4

Accessibility & contrast

On white

17.52
#2A0542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0542
17.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0542#FFFFFF#000000##FFFFFF
##2A05421.0017.521.2017.52
#FFFFFF17.521.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001A41
Tritanopia (blue-blind)
#261524
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2a0542;
/* rgb */ color: rgb(42, 5, 66);
/* oklch */ color: oklch(22.9% 0.106 307.1);
Tailwind
colors: {
  custom: {
    50: '#674a77',
    500: '#2a0542',
    950: '#000000',
  },
}
SCSS
$custom: #2a0542;
$custom-light: #674a77;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0542",
  "rgb": {
    "r": 42,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 276.393,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.22896,
    "c": 0.10623,
    "h": 307.1
  },
  "luminance": 0.00994
}

Semantic roles & 50–950 ramp

primary
#2A0542
secondary
#478220
accent
#FC2C7E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0542

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

Preview Lab → · Contrast checker → · Palette generator →

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