#30178F#30178F

#30178F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.179 H 280.6°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#30178F
RGBrgb(48, 23, 143)
HSLhsl(253, 72%, 33%)
HSVhsv(253, 84%, 56%)
CMYKcmyk(66.4%, 83.9%, 0%, 43.9%)
CIE-LABlab(20.92, 45.14, -60.84)
CIE-LCHlch(20.92, 75.76, 306.58°)
OKLaboklab(33.87% 0.0328 -0.1756)
OKLCHoklch(33.87% 0.179 280.6)
XYZxyz(6.4817, 3.2238, 26.2620)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30178F #768F17
analogous
#173A8F #30178F #6C178F
triadic
#30178F #8F3017 #178F30
tetradic
#30178F #8F173A #768F17 #178F6C
square
#30178F #8F173A #768F17 #178F6C
split-complementary
#30178F #8F6C17 #3A8F17
monochromatic
#0D0626 #1E0F5A #30178F #421FC4 #6140E0

Accessibility & contrast

On white

12.77
#30178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30178F
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30178F#FFFFFF#000000##FFFFFF
##30178F1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #30178f;
/* rgb */ color: rgb(48, 23, 143);
/* oklch */ color: oklch(33.9% 0.179 280.6);
Tailwind
colors: {
  custom: {
    50: '#7759b1',
    500: '#30178f',
    950: '#000000',
  },
}
SCSS
$custom: #30178f;
$custom-light: #7759b1;
$custom-dark: #000000;
JSON
{
  "hex": "#30178f",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 252.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33873,
    "c": 0.17865,
    "h": 280.6
  },
  "luminance": 0.03224
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #30178F

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

Preview Lab → · Contrast checker → · Palette generator →

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