#30197A#30197A

#30197A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.152 H 284.7°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#30197A
RGBrgb(48, 25, 122)
HSLhsl(254, 66%, 29%)
HSVhsv(254, 80%, 48%)
CMYKcmyk(60.7%, 79.5%, 0%, 52.2%)
CIE-LABlab(18.92, 37.79, -50.90)
CIE-LCHlch(18.92, 63.39, 306.60°)
OKLaboklab(31.8% 0.0384 -0.1466)
OKLCHoklch(31.8% 0.152 284.7)
XYZxyz(5.0783, 2.7285, 18.6676)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30197A #637A19
analogous
#19337A #30197A #61197A
triadic
#30197A #7A3019 #197A30
tetradic
#30197A #7A1933 #637A19 #197A61
square
#30197A #7A1933 #637A19 #197A61
split-complementary
#30197A #7A6119 #337A19
monochromatic
#0A0519 #1C0F47 #30197A #4423AD #5D37D6

Accessibility & contrast

On white

13.59
#30197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#30197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30197A
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30197A#FFFFFF#000000##FFFFFF
##30197A1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#053549
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #30197a;
/* rgb */ color: rgb(48, 25, 122);
/* oklch */ color: oklch(31.8% 0.152 284.7);
Tailwind
colors: {
  custom: {
    50: '#7259a1',
    500: '#30197a',
    950: '#000000',
  },
}
SCSS
$custom: #30197a;
$custom-light: #7259a1;
$custom-dark: #000000;
JSON
{
  "hex": "#30197a",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 254.227,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31795,
    "c": 0.15157,
    "h": 284.7
  },
  "luminance": 0.02729
}

Semantic roles & 50–950 ramp

primary
#30197A
secondary
#94AF40
accent
#E93FC1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #30197A

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

Preview Lab → · Contrast checker → · Palette generator →

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