#30216E#30216E

#30216E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.126 H 285.6°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#30216E
RGBrgb(48, 33, 110)
HSLhsl(252, 54%, 28%)
HSVhsv(252, 70%, 43%)
CMYKcmyk(56.4%, 70%, 0%, 56.9%)
CIE-LABlab(19.40, 29.32, -42.39)
CIE-LCHlch(19.40, 51.54, 304.67°)
OKLaboklab(31.77% 0.0341 -0.1218)
OKLCHoklch(31.77% 0.126 285.6)
XYZxyz(4.5764, 2.8416, 15.0562)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30216E #5F6E21
analogous
#21396E #30216E #56216E
triadic
#30216E #6E3021 #216E30
tetradic
#30216E #6E2139 #5F6E21 #216E56
square
#30216E #6E2139 #5F6E21 #216E56
split-complementary
#30216E #6E5621 #396E21
monochromatic
#0A0718 #1B133F #30216E #452F9D #5D43C7

Accessibility & contrast

On white

13.39
#30216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#30216E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30216E
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30216E#FFFFFF#000000##FFFFFF
##30216E1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#002D6C
Tritanopia (blue-blind)
#163444
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #30216e;
/* rgb */ color: rgb(48, 33, 110);
/* oklch */ color: oklch(31.8% 0.126 285.6);
Tailwind
colors: {
  custom: {
    50: '#6f5d98',
    500: '#30216e',
    950: '#000000',
  },
}
SCSS
$custom: #30216e;
$custom-light: #6f5d98;
$custom-dark: #000000;
JSON
{
  "hex": "#30216e",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 251.688,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31774,
    "c": 0.12644,
    "h": 285.6
  },
  "luminance": 0.02842
}

Semantic roles & 50–950 ramp

primary
#30216E
secondary
#90A249
accent
#DD4BC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #30216E

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

Preview Lab → · Contrast checker → · Palette generator →

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