#30197F#30197F

#30197F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.158 H 283.5°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#30197F
RGBrgb(48, 25, 127)
HSLhsl(254, 67%, 30%)
HSVhsv(254, 80%, 50%)
CMYKcmyk(62.2%, 80.3%, 0%, 50.2%)
CIE-LABlab(19.46, 39.34, -53.20)
CIE-LCHlch(19.46, 66.17, 306.48°)
OKLaboklab(32.33% 0.0369 -0.1534)
OKLCHoklch(32.33% 0.158 283.5)
XYZxyz(5.3961, 2.8556, 20.3414)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30197F #687F19
analogous
#19357F #30197F #63197F
triadic
#30197F #7F3019 #197F30
tetradic
#30197F #7F1935 #687F19 #197F63
square
#30197F #7F1935 #687F19 #197F63
split-complementary
#30197F #7F6319 #357F19
monochromatic
#0A051A #1D0F4C #30197F #4323B2 #5E3AD8

Accessibility & contrast

On white

13.37
#30197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#30197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30197F
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30197F#FFFFFF#000000##FFFFFF
##30197F1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #30197f;
/* rgb */ color: rgb(48, 25, 127);
/* oklch */ color: oklch(32.3% 0.158 283.5);
Tailwind
colors: {
  custom: {
    50: '#7359a5',
    500: '#30197f',
    950: '#000000',
  },
}
SCSS
$custom: #30197f;
$custom-light: #7359a5;
$custom-dark: #000000;
JSON
{
  "hex": "#30197f",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 253.529,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32329,
    "c": 0.15774,
    "h": 283.5
  },
  "luminance": 0.02856
}

Semantic roles & 50–950 ramp

primary
#30197F
secondary
#99B341
accent
#EA3EC3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #30197F

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

Preview Lab → · Contrast checker → · Palette generator →

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