#30198E#30198E

#30198E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.176 H 280.5°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#30198E
RGBrgb(48, 25, 142)
HSLhsl(252, 70%, 33%)
HSVhsv(252, 82%, 56%)
CMYKcmyk(66.2%, 82.4%, 0%, 44.3%)
CIE-LABlab(21.12, 43.93, -59.89)
CIE-LCHlch(21.12, 74.27, 306.26°)
OKLaboklab(33.98% 0.0321 -0.1729)
OKLCHoklch(33.98% 0.176 280.5)
XYZxyz(6.4475, 3.2761, 25.8785)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30198E #778E19
analogous
#193C8E #30198E #6A198E
triadic
#30198E #8E3019 #198E30
tetradic
#30198E #8E193C #778E19 #198E6A
square
#30198E #8E193C #778E19 #198E6A
split-complementary
#30198E #8E6A19 #3C8E19
monochromatic
#0D0726 #1E105A #30198E #4222C2 #6243DE

Accessibility & contrast

On white

12.69
#30198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#30198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30198E
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30198E#FFFFFF#000000##FFFFFF
##30198E1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #30198e;
/* rgb */ color: rgb(48, 25, 142);
/* oklch */ color: oklch(34.0% 0.176 280.5);
Tailwind
colors: {
  custom: {
    50: '#765ab0',
    500: '#30198e',
    950: '#000000',
  },
}
SCSS
$custom: #30198e;
$custom-light: #765ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#30198e",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 251.795,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33977,
    "c": 0.17583,
    "h": 280.5
  },
  "luminance": 0.03277
}

Semantic roles & 50–950 ramp

primary
#30198E
secondary
#A7BF44
accent
#ED3BCA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #30198E

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

Preview Lab → · Contrast checker → · Palette generator →

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