#30216F#30216F

#30216F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 31.9% C 0.128 H 285.4°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#30216F
RGBrgb(48, 33, 111)
HSLhsl(252, 54%, 28%)
HSVhsv(252, 70%, 44%)
CMYKcmyk(56.8%, 70.3%, 0%, 56.5%)
CIE-LABlab(19.49, 29.65, -42.89)
CIE-LCHlch(19.49, 52.14, 304.66°)
OKLaboklab(31.87% 0.0339 -0.1232)
OKLCHoklch(31.87% 0.128 285.4)
XYZxyz(4.6312, 2.8635, 15.3445)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30216F #606F21
analogous
#21396F #30216F #57216F
triadic
#30216F #6F3021 #216F30
tetradic
#30216F #6F2139 #606F21 #216F57
square
#30216F #6F2139 #606F21 #216F57
split-complementary
#30216F #6F5721 #396F21
monochromatic
#0A0718 #1C1340 #30216F #442F9E #5D43C7

Accessibility & contrast

On white

13.35
#30216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30216F
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30216F#FFFFFF#000000##FFFFFF
##30216F1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#153545
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #30216f;
/* rgb */ color: rgb(48, 33, 111);
/* oklch */ color: oklch(31.9% 0.128 285.4);
Tailwind
colors: {
  custom: {
    50: '#6f5d99',
    500: '#30216f',
    950: '#000000',
  },
}
SCSS
$custom: #30216f;
$custom-light: #6f5d99;
$custom-dark: #000000;
JSON
{
  "hex": "#30216f",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 251.538,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31868,
    "c": 0.12782,
    "h": 285.4
  },
  "luminance": 0.02864
}

Semantic roles & 50–950 ramp

primary
#30216F
secondary
#91A349
accent
#DE4AC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #30216F

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

Preview Lab → · Contrast checker → · Palette generator →

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