#301236#301236

#301236 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.6% C 0.075 H 320.7°. Best body text is #FFFFFF at 16.60:1 contrast (WCAG AA passes).

Color values

HEX#301236
RGBrgb(48, 18, 54)
HSLhsl(290, 50%, 14%)
HSVhsv(290, 67%, 21%)
CMYKcmyk(11.1%, 66.7%, 0%, 78.8%)
CIE-LABlab(11.47, 21.94, -17.04)
CIE-LCHlch(11.47, 27.78, 322.16°)
OKLaboklab(24.61% 0.0579 -0.0474)
OKLCHoklch(24.61% 0.075 320.7)
XYZxyz(2.1010, 1.3274, 3.6349)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301236 #183612
analogous
#1E1236 #301236 #36122A
triadic
#301236 #363012 #123630
tetradic
#301236 #361E12 #183612 #122A36
square
#301236 #361E12 #183612 #122A36
split-complementary
#301236 #2A3612 #12361E
monochromatic
#140817 #140817 #301236 #592164 #823192

Accessibility & contrast

On white

16.60
#301236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#301236 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301236
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301236#FFFFFF#000000##FFFFFF
##3012361.0016.601.2716.60
#FFFFFF16.601.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1C37
Deuteranopia (green-blind)
#152035
Tritanopia (blue-blind)
#301721
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #301236;
/* rgb */ color: rgb(48, 18, 54);
/* oklch */ color: oklch(24.6% 0.075 320.7);
Tailwind
colors: {
  custom: {
    50: '#6a526d',
    500: '#301236',
    950: '#000000',
  },
}
SCSS
$custom: #301236;
$custom-light: #6a526d;
$custom-dark: #000000;
JSON
{
  "hex": "#301236",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 54
  },
  "hsl": {
    "h": 290,
    "s": 50,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24605,
    "c": 0.07478,
    "h": 320.7
  },
  "luminance": 0.01327
}

Semantic roles & 50–950 ramp

primary
#301236
secondary
#3F6F35
accent
#DA4E65
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060207
muted
#7A787A

Preview Lab

Preview with #301236

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

Preview Lab → · Contrast checker → · Palette generator →

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