#30158F#30158F

#30158F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.7% C 0.180 H 280.8°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#30158F
RGBrgb(48, 21, 143)
HSLhsl(253, 74%, 32%)
HSVhsv(253, 85%, 56%)
CMYKcmyk(66.4%, 85.3%, 0%, 43.9%)
CIE-LABlab(20.62, 46.01, -61.33)
CIE-LCHlch(20.62, 76.67, 306.88°)
OKLaboklab(33.67% 0.0337 -0.177)
OKLCHoklch(33.67% 0.18 280.8)
XYZxyz(6.4434, 3.1474, 26.2492)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30158F #748F15
analogous
#15378F #30158F #6D158F
triadic
#30158F #8F3015 #158F30
tetradic
#30158F #8F1537 #748F15 #158F6D
square
#30158F #8F1537 #748F15 #158F6D
split-complementary
#30158F #8F6D15 #378F15
monochromatic
#0C0524 #1E0D5A #30158F #421DC4 #613CE2

Accessibility & contrast

On white

12.89
#30158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#30158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30158F
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30158F#FFFFFF#000000##FFFFFF
##30158F1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #30158f;
/* rgb */ color: rgb(48, 21, 143);
/* oklch */ color: oklch(33.7% 0.180 280.8);
Tailwind
colors: {
  custom: {
    50: '#7758b1',
    500: '#30158f',
    950: '#000000',
  },
}
SCSS
$custom: #30158f;
$custom-light: #7758b1;
$custom-dark: #000000;
JSON
{
  "hex": "#30158f",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 253.279,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33671,
    "c": 0.18018,
    "h": 280.8
  },
  "luminance": 0.03148
}

Semantic roles & 50–950 ramp

primary
#30158F
secondary
#A5C23E
accent
#F137C8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #30158F

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

Preview Lab → · Contrast checker → · Palette generator →

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