#30178C#30178C

#30178C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.175 H 281.1°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#30178C
RGBrgb(48, 23, 140)
HSLhsl(253, 72%, 32%)
HSVhsv(253, 84%, 55%)
CMYKcmyk(65.7%, 83.6%, 0%, 45.1%)
CIE-LABlab(20.57, 44.25, -59.54)
CIE-LCHlch(20.57, 74.19, 306.62°)
OKLaboklab(33.53% 0.0338 -0.1718)
OKLCHoklch(33.53% 0.175 281.1)
XYZxyz(6.2575, 3.1341, 25.0811)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30178C #738C17
analogous
#17388C #30178C #6B178C
triadic
#30178C #8C3017 #178C30
tetradic
#30178C #8C1738 #738C17 #178C6B
square
#30178C #8C1738 #738C17 #178C6B
split-complementary
#30178C #8C6B17 #388C17
monochromatic
#0C0623 #1E0E57 #30178C #4220C1 #613EDF

Accessibility & contrast

On white

12.91
#30178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30178C
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30178C#FFFFFF#000000##FFFFFF
##30178C1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #30178c;
/* rgb */ color: rgb(48, 23, 140);
/* oklch */ color: oklch(33.5% 0.175 281.1);
Tailwind
colors: {
  custom: {
    50: '#7659af',
    500: '#30178c',
    950: '#000000',
  },
}
SCSS
$custom: #30178c;
$custom-light: #7659af;
$custom-dark: #000000;
JSON
{
  "hex": "#30178c",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 252.821,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33533,
    "c": 0.17513,
    "h": 281.1
  },
  "luminance": 0.03135
}

Semantic roles & 50–950 ramp

primary
#30178C
secondary
#A4BF3F
accent
#EF39C8
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #30178C

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

Preview Lab → · Contrast checker → · Palette generator →

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