#300F31#300F31

#300F31 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.8% C 0.075 H 326.5°. Best body text is #FFFFFF at 16.96:1 contrast (WCAG AA passes).

Color values

HEX#300F31
RGBrgb(48, 15, 49)
HSLhsl(298, 53%, 13%)
HSVhsv(298, 69%, 19%)
CMYKcmyk(2%, 69.4%, 0%, 80.8%)
CIE-LABlab(10.50, 22.53, -14.94)
CIE-LCHlch(10.50, 27.03, 326.45°)
OKLaboklab(23.79% 0.0622 -0.0412)
OKLCHoklch(23.79% 0.075 326.5)
XYZxyz(1.9441, 1.1919, 3.0328)
Luminance0.0119 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F31 #10310F
analogous
#1F0F31 #300F31 #310F21
triadic
#300F31 #31300F #0F3130
tetradic
#300F31 #311F0F #10310F #0F2131
square
#300F31 #311F0F #10310F #0F2131
split-complementary
#300F31 #21310F #0F311F
monochromatic
#170717 #170717 #300F31 #5E1D60 #8C2C8F

Accessibility & contrast

On white

16.96
#300F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#300F31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300F31
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300F31#FFFFFF#000000##FFFFFF
##300F311.0016.961.2416.96
#FFFFFF16.961.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1A32
Deuteranopia (green-blind)
#161E30
Tritanopia (blue-blind)
#31131E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #300f31;
/* rgb */ color: rgb(48, 15, 49);
/* oklch */ color: oklch(23.8% 0.075 326.5);
Tailwind
colors: {
  custom: {
    50: '#6a5069',
    500: '#300f31',
    950: '#000000',
  },
}
SCSS
$custom: #300f31;
$custom-light: #6a5069;
$custom-dark: #000000;
JSON
{
  "hex": "#300f31",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 49
  },
  "hsl": {
    "h": 298.235,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23793,
    "c": 0.07463,
    "h": 326.5
  },
  "luminance": 0.01192
}

Semantic roles & 50–950 ramp

primary
#300F31
secondary
#336B31
accent
#DD4B50
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #300F31

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

Preview Lab → · Contrast checker → · Palette generator →

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