#30197C#30197C

#30197C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.154 H 284.2°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#30197C
RGBrgb(48, 25, 124)
HSLhsl(254, 66%, 29%)
HSVhsv(254, 80%, 49%)
CMYKcmyk(61.3%, 79.8%, 0%, 51.4%)
CIE-LABlab(19.13, 38.42, -51.82)
CIE-LCHlch(19.13, 64.51, 306.55°)
OKLaboklab(32.01% 0.0378 -0.1493)
OKLCHoklch(32.01% 0.154 284.2)
XYZxyz(5.2035, 2.7785, 19.3270)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30197C #657C19
analogous
#19347C #30197C #62197C
triadic
#30197C #7C3019 #197C30
tetradic
#30197C #7C1934 #657C19 #197C62
square
#30197C #7C1934 #657C19 #197C62
split-complementary
#30197C #7C6219 #347C19
monochromatic
#0A0519 #1C0F49 #30197C #4423AF #5D38D7

Accessibility & contrast

On white

13.50
#30197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#30197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30197C
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30197C#FFFFFF#000000##FFFFFF
##30197C1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#01364A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #30197c;
/* rgb */ color: rgb(48, 25, 124);
/* oklch */ color: oklch(32.0% 0.154 284.2);
Tailwind
colors: {
  custom: {
    50: '#7359a3',
    500: '#30197c',
    950: '#000000',
  },
}
SCSS
$custom: #30197c;
$custom-light: #7359a3;
$custom-dark: #000000;
JSON
{
  "hex": "#30197c",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 253.939,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32008,
    "c": 0.15405,
    "h": 284.2
  },
  "luminance": 0.02779
}

Semantic roles & 50–950 ramp

primary
#30197C
secondary
#96B040
accent
#E93EC2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #30197C

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

Preview Lab → · Contrast checker → · Palette generator →

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