#30199C#30199C

#30199C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.192 H 278.3°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#30199C
RGBrgb(48, 25, 156)
HSLhsl(251, 72%, 35%)
HSVhsv(251, 84%, 61%)
CMYKcmyk(69.2%, 84%, 0%, 38.8%)
CIE-LABlab(22.73, 48.12, -65.86)
CIE-LCHlch(22.73, 81.57, 306.15°)
OKLaboklab(35.57% 0.0276 -0.1902)
OKLCHoklch(35.57% 0.192 278.3)
XYZxyz(7.5654, 3.7233, 31.7660)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30199C #859C19
analogous
#19449C #30199C #71199C
triadic
#30199C #9C3019 #199C30
tetradic
#30199C #9C1944 #859C19 #199C71
square
#30199C #9C1944 #859C19 #199C71
split-complementary
#30199C #9C7119 #449C19
monochromatic
#100833 #201167 #30199C #4021D1 #674DE2

Accessibility & contrast

On white

12.04
#30199C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#30199C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30199C
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30199C#FFFFFF#000000##FFFFFF
##30199C1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA0
Deuteranopia (green-blind)
#00319A
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #30199c;
/* rgb */ color: rgb(48, 25, 156);
/* oklch */ color: oklch(35.6% 0.192 278.3);
Tailwind
colors: {
  custom: {
    50: '#7a5bbb',
    500: '#30199c',
    950: '#000000',
  },
}
SCSS
$custom: #30199c;
$custom-light: #7a5bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#30199c",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 156
  },
  "hsl": {
    "h": 250.534,
    "s": 72.376,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35566,
    "c": 0.19222,
    "h": 278.3
  },
  "luminance": 0.03724
}

Semantic roles & 50–950 ramp

primary
#30199C
secondary
#AFC44C
accent
#EF39CF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #30199C

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

Preview Lab → · Contrast checker → · Palette generator →

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