#301232#301232

#301232 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.3% C 0.070 H 325.0°. Best body text is #FFFFFF at 16.69:1 contrast (WCAG AA passes).

Color values

HEX#301232
RGBrgb(48, 18, 50)
HSLhsl(296, 47%, 13%)
HSVhsv(296, 64%, 20%)
CMYKcmyk(4%, 64%, 0%, 80.4%)
CIE-LABlab(11.22, 20.98, -14.54)
CIE-LCHlch(11.22, 25.53, 325.28°)
OKLaboklab(24.34% 0.0574 -0.0401)
OKLCHoklch(24.34% 0.07 325)
XYZxyz(2.0109, 1.2914, 3.1603)
Luminance0.0129 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301232 #143212
analogous
#201232 #301232 #321224
triadic
#301232 #323012 #123230
tetradic
#301232 #322012 #143212 #122432
square
#301232 #322012 #143212 #122432
split-complementary
#301232 #243212 #123220
monochromatic
#160817 #160817 #301232 #5B225F #86328C

Accessibility & contrast

On white

16.69
#301232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#301232 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301232
16.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301232#FFFFFF#000000##FFFFFF
##3012321.0016.691.2616.69
#FFFFFF16.691.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1C33
Deuteranopia (green-blind)
#171F31
Tritanopia (blue-blind)
#31161F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #301232;
/* rgb */ color: rgb(48, 18, 50);
/* oklch */ color: oklch(24.3% 0.070 325.0);
Tailwind
colors: {
  custom: {
    50: '#69516a',
    500: '#301232',
    950: '#000000',
  },
}
SCSS
$custom: #301232;
$custom-light: #69516a;
$custom-dark: #000000;
JSON
{
  "hex": "#301232",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 50
  },
  "hsl": {
    "h": 296.25,
    "s": 47.059,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24339,
    "c": 0.07001,
    "h": 325
  },
  "luminance": 0.01291
}

Semantic roles & 50–950 ramp

primary
#301232
secondary
#396A36
accent
#D75159
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #301232

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

Preview Lab → · Contrast checker → · Palette generator →

#301232 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva