#30198A#30198A

#30198A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.171 H 281.3°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#30198A
RGBrgb(48, 25, 138)
HSLhsl(252, 69%, 32%)
HSVhsv(252, 82%, 54%)
CMYKcmyk(65.2%, 81.9%, 0%, 45.9%)
CIE-LABlab(20.67, 42.71, -58.14)
CIE-LCHlch(20.67, 72.14, 306.30°)
OKLaboklab(33.53% 0.0334 -0.1678)
OKLCHoklch(33.53% 0.171 281.3)
XYZxyz(6.1526, 3.1582, 24.3252)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30198A #738A19
analogous
#193B8A #30198A #68198A
triadic
#30198A #8A3019 #198A30
tetradic
#30198A #8A193B #738A19 #198A68
square
#30198A #8A193B #738A19 #198A68
split-complementary
#30198A #8A6819 #3B8A19
monochromatic
#0C0622 #1E1056 #30198A #4222BE #6141DD

Accessibility & contrast

On white

12.87
#30198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#30198A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30198A
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30198A#FFFFFF#000000##FFFFFF
##30198A1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #30198a;
/* rgb */ color: rgb(48, 25, 138);
/* oklch */ color: oklch(33.5% 0.171 281.3);
Tailwind
colors: {
  custom: {
    50: '#765aad',
    500: '#30198a',
    950: '#000000',
  },
}
SCSS
$custom: #30198a;
$custom-light: #765aad;
$custom-dark: #000000;
JSON
{
  "hex": "#30198a",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 252.212,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33531,
    "c": 0.17106,
    "h": 281.3
  },
  "luminance": 0.03159
}

Semantic roles & 50–950 ramp

primary
#30198A
secondary
#A4BD42
accent
#EC3CC8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #30198A

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

Preview Lab → · Contrast checker → · Palette generator →

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