#30178E#30178E

#30178E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.177 H 280.8°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#30178E
RGBrgb(48, 23, 142)
HSLhsl(253, 72%, 32%)
HSVhsv(253, 84%, 56%)
CMYKcmyk(66.2%, 83.8%, 0%, 44.3%)
CIE-LABlab(20.80, 44.85, -60.41)
CIE-LCHlch(20.80, 75.24, 306.59°)
OKLaboklab(33.76% 0.0331 -0.1743)
OKLCHoklch(33.76% 0.177 280.8)
XYZxyz(6.4063, 3.1937, 25.8648)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30178E #758E17
analogous
#173A8E #30178E #6C178E
triadic
#30178E #8E3017 #178E30
tetradic
#30178E #8E173A #758E17 #178E6C
square
#30178E #8E173A #758E17 #178E6C
split-complementary
#30178E #8E6C17 #3A8E17
monochromatic
#0C0625 #1E0E59 #30178E #4220C3 #613FE0

Accessibility & contrast

On white

12.81
#30178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#30178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30178E
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30178E#FFFFFF#000000##FFFFFF
##30178E1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #30178e;
/* rgb */ color: rgb(48, 23, 142);
/* oklch */ color: oklch(33.8% 0.177 280.8);
Tailwind
colors: {
  custom: {
    50: '#7759b0',
    500: '#30178e',
    950: '#000000',
  },
}
SCSS
$custom: #30178e;
$custom-light: #7759b0;
$custom-dark: #000000;
JSON
{
  "hex": "#30178e",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 252.605,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3376,
    "c": 0.17747,
    "h": 280.8
  },
  "luminance": 0.03194
}

Semantic roles & 50–950 ramp

primary
#30178E
secondary
#A5C040
accent
#EF39C9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #30178E

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

Preview Lab → · Contrast checker → · Palette generator →

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