#30198C#30198C

#30198C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.173 H 280.9°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#30198C
RGBrgb(48, 25, 140)
HSLhsl(252, 70%, 32%)
HSVhsv(252, 82%, 55%)
CMYKcmyk(65.7%, 82.1%, 0%, 45.1%)
CIE-LABlab(20.89, 43.32, -59.02)
CIE-LCHlch(20.89, 73.21, 306.28°)
OKLaboklab(33.75% 0.0328 -0.1703)
OKLCHoklch(33.75% 0.173 280.9)
XYZxyz(6.2987, 3.2166, 25.0948)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30198C #758C19
analogous
#193C8C #30198C #6A198C
triadic
#30198C #8C3019 #198C30
tetradic
#30198C #8C193C #758C19 #198C6A
square
#30198C #8C193C #758C19 #198C6A
split-complementary
#30198C #8C6A19 #3C8C19
monochromatic
#0C0624 #1E1058 #30198C #4222C0 #6142DD

Accessibility & contrast

On white

12.78
#30198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#30198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30198C
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30198C#FFFFFF#000000##FFFFFF
##30198C1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #30198c;
/* rgb */ color: rgb(48, 25, 140);
/* oklch */ color: oklch(33.8% 0.173 280.9);
Tailwind
colors: {
  custom: {
    50: '#765aaf',
    500: '#30198c',
    950: '#000000',
  },
}
SCSS
$custom: #30198c;
$custom-light: #765aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#30198c",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 252,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33753,
    "c": 0.17345,
    "h": 280.9
  },
  "luminance": 0.03217
}

Semantic roles & 50–950 ramp

primary
#30198C
secondary
#A5BE43
accent
#ED3BC9
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #30198C

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

Preview Lab → · Contrast checker → · Palette generator →

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