#30216C#30216C

#30216C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.6% C 0.124 H 286.1°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#30216C
RGBrgb(48, 33, 108)
HSLhsl(252, 53%, 28%)
HSVhsv(252, 69%, 42%)
CMYKcmyk(55.6%, 69.4%, 0%, 57.6%)
CIE-LABlab(19.22, 28.66, -41.39)
CIE-LCHlch(19.22, 50.34, 304.70°)
OKLaboklab(31.59% 0.0344 -0.1188)
OKLCHoklch(31.59% 0.124 286.1)
XYZxyz(4.4687, 2.7986, 14.4892)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30216C #5D6C21
analogous
#21386C #30216C #55216C
triadic
#30216C #6C3021 #216C30
tetradic
#30216C #6C2138 #5D6C21 #216C55
square
#30216C #6C2138 #5D6C21 #216C55
split-complementary
#30216C #6C5521 #386C21
monochromatic
#0A0717 #1B133D #30216C #452F9B #5C42C5

Accessibility & contrast

On white

13.46
#30216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#30216C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30216C
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30216C#FFFFFF#000000##FFFFFF
##30216C1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#183443
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #30216c;
/* rgb */ color: rgb(48, 33, 108);
/* oklch */ color: oklch(31.6% 0.124 286.1);
Tailwind
colors: {
  custom: {
    50: '#6f5d97',
    500: '#30216c',
    950: '#000000',
  },
}
SCSS
$custom: #30216c;
$custom-light: #6f5d97;
$custom-dark: #000000;
JSON
{
  "hex": "#30216c",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 252,
    "s": 53.191,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31589,
    "c": 0.12369,
    "h": 286.1
  },
  "luminance": 0.02799
}

Semantic roles & 50–950 ramp

primary
#30216C
secondary
#8EA049
accent
#DD4BC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #30216C

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

Preview Lab → · Contrast checker → · Palette generator →

#30216C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva