#2A0C30#2A0C30

#2A0C30 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.3% C 0.075 H 320.6°. Best body text is #FFFFFF at 17.59:1 contrast (WCAG AA passes).

Color values

HEX#2A0C30
RGBrgb(42, 12, 48)
HSLhsl(290, 60%, 12%)
HSVhsv(290, 75%, 19%)
CMYKcmyk(12.5%, 75%, 0%, 81.2%)
CIE-LABlab(8.73, 22.08, -17.08)
CIE-LCHlch(8.73, 27.92, 322.29°)
OKLaboklab(22.26% 0.058 -0.0476)
OKLCHoklch(22.26% 0.075 320.6)
XYZxyz(1.6198, 0.9687, 2.8974)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0C30 #12300C
analogous
#180C30 #2A0C30 #300C24
triadic
#2A0C30 #302A0C #0C302A
tetradic
#2A0C30 #30180C #12300C #0C2430
square
#2A0C30 #30180C #12300C #0C2430
split-complementary
#2A0C30 #24300C #0C3018
monochromatic
#150618 #150618 #2A0C30 #551861 #802492

Accessibility & contrast

On white

17.59
#2A0C30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#2A0C30 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0C30
17.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0C30#FFFFFF#000000##FFFFFF
##2A0C301.0017.591.1917.59
#FFFFFF17.591.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041731
Deuteranopia (green-blind)
#0F1A2F
Tritanopia (blue-blind)
#2A121C
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2a0c30;
/* rgb */ color: rgb(42, 12, 48);
/* oklch */ color: oklch(22.3% 0.075 320.6);
Tailwind
colors: {
  custom: {
    50: '#654d68',
    500: '#2a0c30',
    950: '#000000',
  },
}
SCSS
$custom: #2a0c30;
$custom-light: #654d68;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0c30",
  "rgb": {
    "r": 42,
    "g": 12,
    "b": 48
  },
  "hsl": {
    "h": 290,
    "s": 60,
    "l": 11.765
  },
  "oklch": {
    "l": 0.22264,
    "c": 0.07504,
    "h": 320.6
  },
  "luminance": 0.00969
}

Semantic roles & 50–950 ramp

primary
#2A0C30
secondary
#376C2C
accent
#E3455F
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2A0C30

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

Preview Lab → · Contrast checker → · Palette generator →

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