#30158E#30158E

#30158E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.6% C 0.179 H 281.0°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#30158E
RGBrgb(48, 21, 142)
HSLhsl(253, 74%, 32%)
HSVhsv(253, 85%, 56%)
CMYKcmyk(66.2%, 85.2%, 0%, 44.3%)
CIE-LABlab(20.51, 45.72, -60.90)
CIE-LCHlch(20.51, 76.15, 306.89°)
OKLaboklab(33.56% 0.0341 -0.1757)
OKLCHoklch(33.56% 0.179 281)
XYZxyz(6.3680, 3.1172, 25.8520)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30158E #738E15
analogous
#15378E #30158E #6C158E
triadic
#30158E #8E3015 #158E30
tetradic
#30158E #8E1537 #738E15 #158E6C
square
#30158E #8E1537 #738E15 #158E6C
split-complementary
#30158E #8E6C15 #378E15
monochromatic
#0C0523 #1E0D59 #30158E #421DC3 #613BE2

Accessibility & contrast

On white

12.93
#30158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30158E
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30158E#FFFFFF#000000##FFFFFF
##30158E1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #30158e;
/* rgb */ color: rgb(48, 21, 142);
/* oklch */ color: oklch(33.6% 0.179 281.0);
Tailwind
colors: {
  custom: {
    50: '#7758b0',
    500: '#30158e',
    950: '#000000',
  },
}
SCSS
$custom: #30158e;
$custom-light: #7758b0;
$custom-dark: #000000;
JSON
{
  "hex": "#30158e",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 253.388,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33556,
    "c": 0.17903,
    "h": 281
  },
  "luminance": 0.03118
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #30158E

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

Preview Lab → · Contrast checker → · Palette generator →

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