#30217B#30217B

#30217B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.144 H 282.7°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#30217B
RGBrgb(48, 33, 123)
HSLhsl(250, 58%, 31%)
HSVhsv(250, 73%, 48%)
CMYKcmyk(61%, 73.2%, 0%, 51.8%)
CIE-LABlab(20.62, 33.62, -48.75)
CIE-LCHlch(20.62, 59.22, 304.60°)
OKLaboklab(33.03% 0.0318 -0.1404)
OKLCHoklch(33.03% 0.144 282.7)
XYZxyz(5.3368, 3.1458, 19.0610)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30217B #6C7B21
analogous
#213F7B #30217B #5D217B
triadic
#30217B #7B3021 #217B30
tetradic
#30217B #7B213F #6C7B21 #217B5D
square
#30217B #7B213F #6C7B21 #217B5D
split-complementary
#30217B #7B5D21 #3F7B21
monochromatic
#0A071A #1D144B #30217B #432EAB #5F48CE

Accessibility & contrast

On white

12.89
#30217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#30217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30217B
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30217B#FFFFFF#000000##FFFFFF
##30217B1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#02394B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #30217b;
/* rgb */ color: rgb(48, 33, 123);
/* oklch */ color: oklch(33.0% 0.144 282.7);
Tailwind
colors: {
  custom: {
    50: '#725ea2',
    500: '#30217b',
    950: '#000000',
  },
}
SCSS
$custom: #30217b;
$custom-light: #725ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#30217b",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 250,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33025,
    "c": 0.14396,
    "h": 282.7
  },
  "luminance": 0.03146
}

Semantic roles & 50–950 ramp

primary
#30217B
secondary
#9DAE4A
accent
#E147C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #30217B

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

Preview Lab → · Contrast checker → · Palette generator →

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