#30198B#30198B

#30198B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.172 H 281.1°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#30198B
RGBrgb(48, 25, 139)
HSLhsl(252, 70%, 32%)
HSVhsv(252, 82%, 55%)
CMYKcmyk(65.5%, 82%, 0%, 45.5%)
CIE-LABlab(20.78, 43.02, -58.58)
CIE-LCHlch(20.78, 72.68, 306.29°)
OKLaboklab(33.64% 0.0331 -0.169)
OKLCHoklch(33.64% 0.172 281.1)
XYZxyz(6.2253, 3.1872, 24.7082)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30198B #748B19
analogous
#193B8B #30198B #69198B
triadic
#30198B #8B3019 #198B30
tetradic
#30198B #8B193B #748B19 #198B69
square
#30198B #8B193B #748B19 #198B69
split-complementary
#30198B #8B6919 #3B8B19
monochromatic
#0C0623 #1E1057 #30198B #4222BF #6141DD

Accessibility & contrast

On white

12.82
#30198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30198B
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30198B#FFFFFF#000000##FFFFFF
##30198B1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #30198b;
/* rgb */ color: rgb(48, 25, 139);
/* oklch */ color: oklch(33.6% 0.172 281.1);
Tailwind
colors: {
  custom: {
    50: '#765aae',
    500: '#30198b',
    950: '#000000',
  },
}
SCSS
$custom: #30198b;
$custom-light: #765aae;
$custom-dark: #000000;
JSON
{
  "hex": "#30198b",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 252.105,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33642,
    "c": 0.17226,
    "h": 281.1
  },
  "luminance": 0.03188
}

Semantic roles & 50–950 ramp

primary
#30198B
secondary
#A5BE42
accent
#EC3BC9
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #30198B

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

Preview Lab → · Contrast checker → · Palette generator →

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