#2A0235#2A0235

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

Color values

HEX#2A0235
RGBrgb(42, 2, 53)
HSLhsl(287, 93%, 11%)
HSVhsv(287, 96%, 21%)
CMYKcmyk(20.8%, 96.2%, 0%, 79.2%)
CIE-LABlab(7.16, 28.82, -23.26)
CIE-LCHlch(7.16, 37.04, 321.09°)
OKLaboklab(21.25% 0.0724 -0.0658)
OKLCHoklch(21.25% 0.098 317.7)
XYZxyz(1.6191, 0.7928, 3.4352)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0235 #0D3502
analogous
#100235 #2A0235 #350226
triadic
#2A0235 #352A02 #02352A
tetradic
#2A0235 #351002 #0D3502 #022635
square
#2A0235 #351002 #0D3502 #022635
split-complementary
#2A0235 #263502 #023510
monochromatic
#17011D #17011D #2A0235 #590470 #8706AB

Accessibility & contrast

On white

18.13
#2A0235 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0235
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0235#FFFFFF#000000##FFFFFF
##2A02351.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001336
Deuteranopia (green-blind)
#031734
Tritanopia (blue-blind)
#290D1C
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2a0235;
/* rgb */ color: rgb(42, 2, 53);
/* oklch */ color: oklch(21.3% 0.098 317.7);
Tailwind
colors: {
  custom: {
    50: '#66486d',
    500: '#2a0235',
    950: '#000000',
  },
}
SCSS
$custom: #2a0235;
$custom-light: #66486d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0235",
  "rgb": {
    "r": 42,
    "g": 2,
    "b": 53
  },
  "hsl": {
    "h": 287.059,
    "s": 92.727,
    "l": 10.784
  },
  "oklch": {
    "l": 0.21254,
    "c": 0.09778,
    "h": 317.7
  },
  "luminance": 0.00793
}

Semantic roles & 50–950 ramp

primary
#2A0235
secondary
#2E791A
accent
#FF2957
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060007
muted
#7A777A

Preview Lab

Preview with #2A0235

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

Preview Lab → · Contrast checker → · Palette generator →

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