#300C31#300C31

#300C31 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.4% C 0.080 H 326.7°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#300C31
RGBrgb(48, 12, 49)
HSLhsl(298, 61%, 12%)
HSVhsv(298, 76%, 19%)
CMYKcmyk(2%, 75.5%, 0%, 80.8%)
CIE-LABlab(9.90, 24.17, -15.88)
CIE-LCHlch(9.90, 28.92, 326.69°)
OKLaboklab(23.36% 0.0668 -0.0439)
OKLCHoklch(23.36% 0.08 326.7)
XYZxyz(1.9047, 1.1132, 3.0197)
Luminance0.0111 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300C31 #0D310C
analogous
#1E0C31 #300C31 #310C20
triadic
#300C31 #31300C #0C3130
tetradic
#300C31 #311E0C #0D310C #0C2031
square
#300C31 #311E0C #0D310C #0C2031
split-complementary
#300C31 #20310C #0C311E
monochromatic
#180619 #180619 #300C31 #601862 #902493

Accessibility & contrast

On white

17.18
#300C31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#300C31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300C31
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300C31#FFFFFF#000000##FFFFFF
##300C311.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071832
Deuteranopia (green-blind)
#141D30
Tritanopia (blue-blind)
#32111D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #300c31;
/* rgb */ color: rgb(48, 12, 49);
/* oklch */ color: oklch(23.4% 0.080 326.7);
Tailwind
colors: {
  custom: {
    50: '#6a4e69',
    500: '#300c31',
    950: '#000000',
  },
}
SCSS
$custom: #300c31;
$custom-light: #6a4e69;
$custom-dark: #000000;
JSON
{
  "hex": "#300c31",
  "rgb": {
    "r": 48,
    "g": 12,
    "b": 49
  },
  "hsl": {
    "h": 298.378,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.2336,
    "c": 0.07996,
    "h": 326.7
  },
  "luminance": 0.01113
}

Semantic roles & 50–950 ramp

primary
#300C31
secondary
#2E6D2C
accent
#E44448
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #300C31

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

Preview Lab → · Contrast checker → · Palette generator →

#300C31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva