#301235#301235

#301235 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.5% C 0.074 H 321.7°. Best body text is #FFFFFF at 16.62:1 contrast (WCAG AA passes).

Color values

HEX#301235
RGBrgb(48, 18, 53)
HSLhsl(291, 49%, 14%)
HSVhsv(291, 66%, 21%)
CMYKcmyk(9.4%, 66%, 0%, 79.2%)
CIE-LABlab(11.40, 21.70, -16.42)
CIE-LCHlch(11.40, 27.21, 322.88°)
OKLaboklab(24.54% 0.0578 -0.0456)
OKLCHoklch(24.54% 0.074 321.7)
XYZxyz(2.0778, 1.3181, 3.5124)
Luminance0.0132 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301235 #173512
analogous
#1F1235 #301235 #351229
triadic
#301235 #353012 #123530
tetradic
#301235 #351F12 #173512 #122935
square
#301235 #351F12 #173512 #122935
split-complementary
#301235 #293512 #12351F
monochromatic
#150817 #150817 #301235 #592263 #833190

Accessibility & contrast

On white

16.62
#301235 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301235
16.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301235#FFFFFF#000000##FFFFFF
##3012351.0016.621.2616.62
#FFFFFF16.621.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1C36
Deuteranopia (green-blind)
#161F34
Tritanopia (blue-blind)
#311721
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #301235;
/* rgb */ color: rgb(48, 18, 53);
/* oklch */ color: oklch(24.5% 0.074 321.7);
Tailwind
colors: {
  custom: {
    50: '#6a516c',
    500: '#301235',
    950: '#000000',
  },
}
SCSS
$custom: #301235;
$custom-light: #6a516c;
$custom-dark: #000000;
JSON
{
  "hex": "#301235",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 53
  },
  "hsl": {
    "h": 291.429,
    "s": 49.296,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24537,
    "c": 0.07357,
    "h": 321.7
  },
  "luminance": 0.01318
}

Semantic roles & 50–950 ramp

primary
#301235
secondary
#3D6D35
accent
#D94F63
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060207
muted
#7A787A

Preview Lab

Preview with #301235

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

Preview Lab → · Contrast checker → · Palette generator →

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