#30217A#30217A

#30217A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.143 H 283.0°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#30217A
RGBrgb(48, 33, 122)
HSLhsl(250, 57%, 30%)
HSVhsv(250, 73%, 48%)
CMYKcmyk(60.7%, 73%, 0%, 52.2%)
CIE-LABlab(20.52, 33.29, -48.27)
CIE-LCHlch(20.52, 58.64, 304.60°)
OKLaboklab(32.93% 0.032 -0.139)
OKLCHoklch(32.93% 0.143 283)
XYZxyz(5.2745, 3.1209, 18.7330)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30217A #6B7A21
analogous
#213F7A #30217A #5C217A
triadic
#30217A #7A3021 #217A30
tetradic
#30217A #7A213F #6B7A21 #217A5C
square
#30217A #7A213F #6B7A21 #217A5C
split-complementary
#30217A #7A5C21 #3F7A21
monochromatic
#0A071A #1D144A #30217A #432EAA #5E48CD

Accessibility & contrast

On white

12.93
#30217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#30217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30217A
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30217A#FFFFFF#000000##FFFFFF
##30217A1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#04394B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #30217a;
/* rgb */ color: rgb(48, 33, 122);
/* oklch */ color: oklch(32.9% 0.143 283.0);
Tailwind
colors: {
  custom: {
    50: '#725ea1',
    500: '#30217a',
    950: '#000000',
  },
}
SCSS
$custom: #30217a;
$custom-light: #725ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#30217a",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 250.112,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32927,
    "c": 0.14264,
    "h": 283
  },
  "luminance": 0.03121
}

Semantic roles & 50–950 ramp

primary
#30217A
secondary
#9CAD4A
accent
#E147C7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #30217A

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

Preview Lab → · Contrast checker → · Palette generator →

#30217A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva