#30178A#30178A

#30178A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.173 H 281.5°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#30178A
RGBrgb(48, 23, 138)
HSLhsl(253, 71%, 32%)
HSVhsv(253, 83%, 54%)
CMYKcmyk(65.2%, 83.3%, 0%, 45.9%)
CIE-LABlab(20.34, 43.65, -58.67)
CIE-LCHlch(20.34, 73.13, 306.65°)
OKLaboklab(33.31% 0.0345 -0.1693)
OKLCHoklch(33.31% 0.173 281.5)
XYZxyz(6.1113, 3.0757, 24.3114)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30178A #718A17
analogous
#17388A #30178A #6A178A
triadic
#30178A #8A3017 #178A30
tetradic
#30178A #8A1738 #718A17 #178A6A
square
#30178A #8A1738 #718A17 #178A6A
split-complementary
#30178A #8A6A17 #388A17
monochromatic
#0C0621 #1E0E56 #30178A #4220BE #603DDF

Accessibility & contrast

On white

13.00
#30178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#30178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30178A
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30178A#FFFFFF#000000##FFFFFF
##30178A1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #30178a;
/* rgb */ color: rgb(48, 23, 138);
/* oklch */ color: oklch(33.3% 0.173 281.5);
Tailwind
colors: {
  custom: {
    50: '#7659ad',
    500: '#30178a',
    950: '#000000',
  },
}
SCSS
$custom: #30178a;
$custom-light: #7659ad;
$custom-dark: #000000;
JSON
{
  "hex": "#30178a",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 253.043,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33308,
    "c": 0.17277,
    "h": 281.5
  },
  "luminance": 0.03076
}

Semantic roles & 50–950 ramp

primary
#30178A
secondary
#A2BE3F
accent
#EE3AC7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #30178A

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

Preview Lab → · Contrast checker → · Palette generator →

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