#30197D#30197D

#30197D is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.155 H 284.0°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#30197D
RGBrgb(48, 25, 125)
HSLhsl(254, 67%, 29%)
HSVhsv(254, 80%, 49%)
CMYKcmyk(61.6%, 80%, 0%, 51%)
CIE-LABlab(19.24, 38.72, -52.28)
CIE-LCHlch(19.24, 65.06, 306.53°)
OKLaboklab(32.11% 0.0375 -0.1507)
OKLCHoklch(32.11% 0.155 284)
XYZxyz(5.2671, 2.8040, 19.6617)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30197D #667D19
analogous
#19347D #30197D #62197D
triadic
#30197D #7D3019 #197D30
tetradic
#30197D #7D1934 #667D19 #197D62
square
#30197D #7D1934 #667D19 #197D62
split-complementary
#30197D #7D6219 #347D19
monochromatic
#0A051A #1C0F4A #30197D #4423B0 #5D39D7

Accessibility & contrast

On white

13.45
#30197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30197D
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30197D#FFFFFF#000000##FFFFFF
##30197D1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #30197d;
/* rgb */ color: rgb(48, 25, 125);
/* oklch */ color: oklch(32.1% 0.155 284.0);
Tailwind
colors: {
  custom: {
    50: '#7359a4',
    500: '#30197d',
    950: '#000000',
  },
}
SCSS
$custom: #30197d;
$custom-light: #7359a4;
$custom-dark: #000000;
JSON
{
  "hex": "#30197d",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 253.8,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32114,
    "c": 0.15529,
    "h": 284
  },
  "luminance": 0.02804
}

Semantic roles & 50–950 ramp

primary
#30197D
secondary
#97B140
accent
#EA3EC2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #30197D

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

Preview Lab → · Contrast checker → · Palette generator →

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