#2A0234#2A0234

#2A0234 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.2% C 0.097 H 318.6°. Best body text is #FFFFFF at 18.15:1 contrast (WCAG AA passes).

Color values

HEX#2A0234
RGBrgb(42, 2, 52)
HSLhsl(288, 93%, 11%)
HSVhsv(288, 96%, 20%)
CMYKcmyk(19.2%, 96.2%, 0%, 79.6%)
CIE-LABlab(7.08, 28.57, -22.66)
CIE-LCHlch(7.08, 36.46, 321.58°)
OKLaboklab(21.16% 0.0726 -0.064)
OKLCHoklch(21.16% 0.097 318.6)
XYZxyz(1.5963, 0.7837, 3.3153)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0234 #0C3402
analogous
#110234 #2A0234 #340225
triadic
#2A0234 #342A02 #02342A
tetradic
#2A0234 #341102 #0C3402 #022534
square
#2A0234 #341102 #0C3402 #022534
split-complementary
#2A0234 #253402 #023411
monochromatic
#18011D #18011D #2A0234 #5A046F #8907AA

Accessibility & contrast

On white

18.15
#2A0234 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0234
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0234#FFFFFF#000000##FFFFFF
##2A02341.0018.151.1618.15
#FFFFFF18.151.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001335
Deuteranopia (green-blind)
#041733
Tritanopia (blue-blind)
#2A0C1B
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2a0234;
/* rgb */ color: rgb(42, 2, 52);
/* oklch */ color: oklch(21.2% 0.097 318.6);
Tailwind
colors: {
  custom: {
    50: '#66486c',
    500: '#2a0234',
    950: '#000000',
  },
}
SCSS
$custom: #2a0234;
$custom-light: #66486c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0234",
  "rgb": {
    "r": 42,
    "g": 2,
    "b": 52
  },
  "hsl": {
    "h": 288,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21164,
    "c": 0.09682,
    "h": 318.6
  },
  "luminance": 0.00784
}

Semantic roles & 50–950 ramp

primary
#2A0234
secondary
#2D781A
accent
#FF2954
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060007
muted
#7A777A

Preview Lab

Preview with #2A0234

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

Preview Lab → · Contrast checker → · Palette generator →

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