#301231#301231

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

Color values

HEX#301231
RGBrgb(48, 18, 49)
HSLhsl(298, 46%, 13%)
HSVhsv(298, 63%, 19%)
CMYKcmyk(2%, 63.3%, 0%, 80.8%)
CIE-LABlab(11.16, 20.75, -13.91)
CIE-LCHlch(11.16, 24.98, 326.17°)
OKLaboklab(24.28% 0.0572 -0.0383)
OKLCHoklch(24.28% 0.069 326.2)
XYZxyz(1.9896, 1.2829, 3.0480)
Luminance0.0128 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301231 #133112
analogous
#201231 #301231 #311222
triadic
#301231 #313012 #123130
tetradic
#301231 #312012 #133112 #122231
square
#301231 #312012 #133112 #122231
split-complementary
#301231 #223112 #123120
monochromatic
#160816 #160816 #301231 #5C225E #88338B

Accessibility & contrast

On white

16.71
#301231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301231
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301231#FFFFFF#000000##FFFFFF
##3012311.0016.711.2616.71
#FFFFFF16.711.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1B32
Deuteranopia (green-blind)
#181F30
Tritanopia (blue-blind)
#31161F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #301231;
/* rgb */ color: rgb(48, 18, 49);
/* oklch */ color: oklch(24.3% 0.069 326.2);
Tailwind
colors: {
  custom: {
    50: '#695169',
    500: '#301231',
    950: '#000000',
  },
}
SCSS
$custom: #301231;
$custom-light: #695169;
$custom-dark: #000000;
JSON
{
  "hex": "#301231",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 49
  },
  "hsl": {
    "h": 298.065,
    "s": 46.269,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24275,
    "c": 0.06886,
    "h": 326.2
  },
  "luminance": 0.01283
}

Semantic roles & 50–950 ramp

primary
#301231
secondary
#376936
accent
#D65256
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #301231

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

Preview Lab → · Contrast checker → · Palette generator →

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