#30158D#30158D

#30158D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.178 H 281.2°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#30158D
RGBrgb(48, 21, 141)
HSLhsl(254, 74%, 32%)
HSVhsv(254, 85%, 55%)
CMYKcmyk(66%, 85.1%, 0%, 44.7%)
CIE-LABlab(20.39, 45.42, -60.47)
CIE-LCHlch(20.39, 75.63, 306.91°)
OKLaboklab(33.44% 0.0344 -0.1745)
OKLCHoklch(33.44% 0.178 281.2)
XYZxyz(6.2933, 3.0873, 25.4584)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30158D #728D15
analogous
#15368D #30158D #6C158D
triadic
#30158D #8D3015 #158D30
tetradic
#30158D #8D1536 #728D15 #158D6C
square
#30158D #8D1536 #728D15 #158D6C
split-complementary
#30158D #8D6C15 #368D15
monochromatic
#0C0522 #1E0D58 #30158D #421DC2 #603BE2

Accessibility & contrast

On white

12.98
#30158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#30158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30158D
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30158D#FFFFFF#000000##FFFFFF
##30158D1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003590
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #30158d;
/* rgb */ color: rgb(48, 21, 141);
/* oklch */ color: oklch(33.4% 0.178 281.2);
Tailwind
colors: {
  custom: {
    50: '#7758b0',
    500: '#30158d',
    950: '#000000',
  },
}
SCSS
$custom: #30158d;
$custom-light: #7758b0;
$custom-dark: #000000;
JSON
{
  "hex": "#30158d",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 253.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33441,
    "c": 0.17787,
    "h": 281.2
  },
  "luminance": 0.03088
}

Semantic roles & 50–950 ramp

primary
#30158D
secondary
#A3C13D
accent
#F137C7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #30158D

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

Preview Lab → · Contrast checker → · Palette generator →

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