#30176A#30176A

#30176A is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.134 H 289.5°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#30176A
RGBrgb(48, 23, 106)
HSLhsl(258, 64%, 25%)
HSVhsv(258, 78%, 42%)
CMYKcmyk(54.7%, 78.3%, 0%, 58.4%)
CIE-LABlab(16.90, 33.91, -43.87)
CIE-LCHlch(16.90, 55.45, 307.70°)
OKLaboklab(29.88% 0.0446 -0.1261)
OKLCHoklch(29.88% 0.134 289.5)
XYZxyz(4.1261, 2.2816, 13.8559)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30176A #516A17
analogous
#17286A #30176A #59176A
triadic
#30176A #6A3017 #176A30
tetradic
#30176A #6A1728 #516A17 #176A59
square
#30176A #6A1728 #516A17 #176A59
split-complementary
#30176A #6A5917 #286A17
monochromatic
#0B0519 #190C38 #30176A #47229C #5E2DCF

Accessibility & contrast

On white

14.42
#30176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#30176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30176A
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30176A#FFFFFF#000000##FFFFFF
##30176A1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002868
Tritanopia (blue-blind)
#1B2E3F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #30176a;
/* rgb */ color: rgb(48, 23, 106);
/* oklch */ color: oklch(29.9% 0.134 289.5);
Tailwind
colors: {
  custom: {
    50: '#6f5795',
    500: '#30176a',
    950: '#000000',
  },
}
SCSS
$custom: #30176a;
$custom-light: #6f5795;
$custom-dark: #000000;
JSON
{
  "hex": "#30176a",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 258.072,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29877,
    "c": 0.13372,
    "h": 289.5
  },
  "luminance": 0.02282
}

Semantic roles & 50–950 ramp

primary
#30176A
secondary
#82A03D
accent
#E740B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #30176A

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

Preview Lab → · Contrast checker → · Palette generator →

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