#2A0C33#2A0C33

#2A0C33 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.5% C 0.079 H 317.6°. Best body text is #FFFFFF at 17.52:1 contrast (WCAG AA passes).

Color values

HEX#2A0C33
RGBrgb(42, 12, 51)
HSLhsl(286, 62%, 12%)
HSVhsv(286, 76%, 20%)
CMYKcmyk(17.6%, 76.5%, 0%, 80%)
CIE-LABlab(8.94, 22.83, -18.93)
CIE-LCHlch(8.94, 29.66, 320.32°)
OKLaboklab(22.49% 0.058 -0.053)
OKLCHoklch(22.49% 0.079 317.6)
XYZxyz(1.6838, 0.9943, 3.2345)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0C33 #15330C
analogous
#170C33 #2A0C33 #330C29
triadic
#2A0C33 #332A0C #0C332A
tetradic
#2A0C33 #33170C #15330C #0C2933
square
#2A0C33 #33170C #15330C #0C2933
split-complementary
#2A0C33 #29330C #0C3317
monochromatic
#140619 #140619 #2A0C33 #531865 #7C2396

Accessibility & contrast

On white

17.52
#2A0C33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2A0C33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0C33
17.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0C33#FFFFFF#000000##FFFFFF
##2A0C331.0017.521.2017.52
#FFFFFF17.521.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021734
Deuteranopia (green-blind)
#0D1A32
Tritanopia (blue-blind)
#2A131E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2a0c33;
/* rgb */ color: rgb(42, 12, 51);
/* oklch */ color: oklch(22.5% 0.079 317.6);
Tailwind
colors: {
  custom: {
    50: '#654d6b',
    500: '#2a0c33',
    950: '#000000',
  },
}
SCSS
$custom: #2a0c33;
$custom-light: #654d6b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0c33",
  "rgb": {
    "r": 42,
    "g": 12,
    "b": 51
  },
  "hsl": {
    "h": 286.154,
    "s": 61.905,
    "l": 12.353
  },
  "oklch": {
    "l": 0.2249,
    "c": 0.0786,
    "h": 317.6
  },
  "luminance": 0.00994
}

Semantic roles & 50–950 ramp

primary
#2A0C33
secondary
#3B6F2C
accent
#E54368
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2A0C33

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

Preview Lab → · Contrast checker → · Palette generator →

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