#30179F#30179F

#30179F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.7% C 0.197 H 278.0°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#30179F
RGBrgb(48, 23, 159)
HSLhsl(251, 75%, 36%)
HSVhsv(251, 86%, 62%)
CMYKcmyk(69.8%, 85.5%, 0%, 37.6%)
CIE-LABlab(22.81, 49.84, -67.58)
CIE-LCHlch(22.81, 83.97, 306.41°)
OKLaboklab(35.72% 0.0274 -0.1952)
OKLCHoklch(35.72% 0.197 278)
XYZxyz(7.7813, 3.7437, 33.1067)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30179F #869F17
analogous
#17429F #30179F #74179F
triadic
#30179F #9F3017 #179F30
tetradic
#30179F #9F1742 #869F17 #179F74
square
#30179F #9F1742 #869F17 #179F74
split-complementary
#30179F #9F7417 #429F17
monochromatic
#100834 #200F6A #30179F #401FD4 #684BE5

Accessibility & contrast

On white

12.01
#30179F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#30179F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30179F
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30179F#FFFFFF#000000##FFFFFF
##30179F1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#00319D
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #30179f;
/* rgb */ color: rgb(48, 23, 159);
/* oklch */ color: oklch(35.7% 0.197 278.0);
Tailwind
colors: {
  custom: {
    50: '#7a5bbd',
    500: '#30179f',
    950: '#000000',
  },
}
SCSS
$custom: #30179f;
$custom-light: #7a5bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#30179f",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 159
  },
  "hsl": {
    "h": 251.029,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35718,
    "c": 0.1971,
    "h": 278
  },
  "luminance": 0.03744
}

Semantic roles & 50–950 ramp

primary
#30179F
secondary
#B0C74B
accent
#F136CF
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #30179F

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

Preview Lab → · Contrast checker → · Palette generator →

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