#30178D#30178D

#30178D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.176 H 280.9°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#30178D
RGBrgb(48, 23, 141)
HSLhsl(253, 72%, 32%)
HSVhsv(253, 84%, 55%)
CMYKcmyk(66%, 83.7%, 0%, 44.7%)
CIE-LABlab(20.69, 44.55, -59.98)
CIE-LCHlch(20.69, 74.71, 306.60°)
OKLaboklab(33.65% 0.0335 -0.1731)
OKLCHoklch(33.65% 0.176 280.9)
XYZxyz(6.3315, 3.1638, 25.4712)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30178D #748D17
analogous
#17398D #30178D #6B178D
triadic
#30178D #8D3017 #178D30
tetradic
#30178D #8D1739 #748D17 #178D6B
square
#30178D #8D1739 #748D17 #178D6B
split-complementary
#30178D #8D6B17 #398D17
monochromatic
#0C0624 #1E0E58 #30178D #4220C2 #613FE0

Accessibility & contrast

On white

12.86
#30178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#30178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30178D
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30178D#FFFFFF#000000##FFFFFF
##30178D1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #30178d;
/* rgb */ color: rgb(48, 23, 141);
/* oklch */ color: oklch(33.6% 0.176 280.9);
Tailwind
colors: {
  custom: {
    50: '#7659b0',
    500: '#30178d',
    950: '#000000',
  },
}
SCSS
$custom: #30178d;
$custom-light: #7659b0;
$custom-dark: #000000;
JSON
{
  "hex": "#30178d",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 252.712,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33646,
    "c": 0.1763,
    "h": 280.9
  },
  "luminance": 0.03164
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #30178D

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

Preview Lab → · Contrast checker → · Palette generator →

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