#2A0530#2A0530

#2A0530 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.3% C 0.087 H 321.8°. Best body text is #FFFFFF at 18.06:1 contrast (WCAG AA passes).

Color values

HEX#2A0530
RGBrgb(42, 5, 48)
HSLhsl(292, 81%, 10%)
HSVhsv(292, 90%, 19%)
CMYKcmyk(12.5%, 89.6%, 0%, 81.2%)
CIE-LABlab(7.36, 25.92, -19.26)
CIE-LCHlch(7.36, 32.30, 323.38°)
OKLaboklab(21.27% 0.0685 -0.054)
OKLCHoklch(21.27% 0.087 321.8)
XYZxyz(1.5426, 0.8143, 2.8717)
Luminance0.0081 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0530 #0B3005
analogous
#140530 #2A0530 #300520
triadic
#2A0530 #302A05 #05302A
tetradic
#2A0530 #301405 #0B3005 #052030
square
#2A0530 #301405 #0B3005 #052030
split-complementary
#2A0530 #203005 #053014
monochromatic
#18031C #18031C #2A0530 #5A0B67 #8B119F

Accessibility & contrast

On white

18.06
#2A0530 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#2A0530 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0530
18.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0530#FFFFFF#000000##FFFFFF
##2A05301.0018.061.1618.06
#FFFFFF18.061.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001431
Deuteranopia (green-blind)
#0A182F
Tritanopia (blue-blind)
#2B0D1A
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2a0530;
/* rgb */ color: rgb(42, 5, 48);
/* oklch */ color: oklch(21.3% 0.087 321.8);
Tailwind
colors: {
  custom: {
    50: '#664968',
    500: '#2a0530',
    950: '#000000',
  },
}
SCSS
$custom: #2a0530;
$custom-light: #664968;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0530",
  "rgb": {
    "r": 42,
    "g": 5,
    "b": 48
  },
  "hsl": {
    "h": 291.628,
    "s": 81.132,
    "l": 10.392
  },
  "oklch": {
    "l": 0.21267,
    "c": 0.08726,
    "h": 321.8
  },
  "luminance": 0.00814
}

Semantic roles & 50–950 ramp

primary
#2A0530
secondary
#2B721F
accent
#F8304C
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2A0530

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

Preview Lab → · Contrast checker → · Palette generator →

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