#2A0335#2A0335

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

Color values

HEX#2A0335
RGBrgb(42, 3, 53)
HSLhsl(287, 89%, 11%)
HSVhsv(287, 94%, 21%)
CMYKcmyk(20.8%, 94.3%, 0%, 79.2%)
CIE-LABlab(7.36, 28.26, -22.95)
CIE-LCHlch(7.36, 36.40, 320.92°)
OKLaboklab(21.4% 0.0708 -0.0648)
OKLCHoklch(21.4% 0.096 317.5)
XYZxyz(1.6299, 0.8145, 3.4388)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0335 #0E3503
analogous
#110335 #2A0335 #350327
triadic
#2A0335 #352A03 #03352A
tetradic
#2A0335 #351103 #0E3503 #032735
square
#2A0335 #351103 #0E3503 #032735
split-complementary
#2A0335 #273503 #033511
monochromatic
#17021D #17021D #2A0335 #58066F #860AA9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A0335#FFFFFF#000000##FFFFFF
##2A03351.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)
#001436
Deuteranopia (green-blind)
#041734
Tritanopia (blue-blind)
#290E1C
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2a0335;
/* rgb */ color: rgb(42, 3, 53);
/* oklch */ color: oklch(21.4% 0.096 317.5);
Tailwind
colors: {
  custom: {
    50: '#66486c',
    500: '#2a0335',
    950: '#000000',
  },
}
SCSS
$custom: #2a0335;
$custom-light: #66486c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0335",
  "rgb": {
    "r": 42,
    "g": 3,
    "b": 53
  },
  "hsl": {
    "h": 286.8,
    "s": 89.286,
    "l": 10.98
  },
  "oklch": {
    "l": 0.214,
    "c": 0.09596,
    "h": 317.5
  },
  "luminance": 0.00814
}

Semantic roles & 50–950 ramp

primary
#2A0335
secondary
#30781C
accent
#FF2958
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0335

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

Preview Lab → · Contrast checker → · Palette generator →

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