#30198F#30198F

#30198F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.177 H 280.4°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#30198F
RGBrgb(48, 25, 143)
HSLhsl(252, 70%, 33%)
HSVhsv(252, 83%, 56%)
CMYKcmyk(66.4%, 82.5%, 0%, 43.9%)
CIE-LABlab(21.23, 44.23, -60.33)
CIE-LCHlch(21.23, 74.80, 306.25°)
OKLaboklab(34.09% 0.0318 -0.1741)
OKLCHoklch(34.09% 0.177 280.4)
XYZxyz(6.5229, 3.3063, 26.2757)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30198F #788F19
analogous
#193D8F #30198F #6B198F
triadic
#30198F #8F3019 #198F30
tetradic
#30198F #8F193D #788F19 #198F6B
square
#30198F #8F193D #788F19 #198F6B
split-complementary
#30198F #8F6B19 #3D8F19
monochromatic
#0D0727 #1F105B #30198F #4122C3 #6244DE

Accessibility & contrast

On white

12.64
#30198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30198F
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30198F#FFFFFF#000000##FFFFFF
##30198F1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #30198f;
/* rgb */ color: rgb(48, 25, 143);
/* oklch */ color: oklch(34.1% 0.177 280.4);
Tailwind
colors: {
  custom: {
    50: '#775ab1',
    500: '#30198f',
    950: '#000000',
  },
}
SCSS
$custom: #30198f;
$custom-light: #775ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#30198f",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 251.695,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34089,
    "c": 0.17701,
    "h": 280.4
  },
  "luminance": 0.03307
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #30198F

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

Preview Lab → · Contrast checker → · Palette generator →

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