#30176C#30176C

#30176C is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.136 H 288.8°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#30176C
RGBrgb(48, 23, 108)
HSLhsl(258, 65%, 26%)
HSVhsv(258, 79%, 42%)
CMYKcmyk(55.6%, 78.7%, 0%, 57.6%)
CIE-LABlab(17.10, 34.53, -44.85)
CIE-LCHlch(17.10, 56.60, 307.59°)
OKLaboklab(30.08% 0.044 -0.1289)
OKLCHoklch(30.08% 0.136 288.8)
XYZxyz(4.2313, 2.3237, 14.4100)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30176C #536C17
analogous
#17286C #30176C #5A176C
triadic
#30176C #6C3017 #176C30
tetradic
#30176C #6C1728 #536C17 #176C5A
square
#30176C #6C1728 #536C17 #176C5A
split-complementary
#30176C #6C5A17 #286C17
monochromatic
#0B0519 #1A0C3A #30176C #46229E #5D2CD1

Accessibility & contrast

On white

14.34
#30176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30176C
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30176C#FFFFFF#000000##FFFFFF
##30176C1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00286A
Tritanopia (blue-blind)
#192E40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #30176c;
/* rgb */ color: rgb(48, 23, 108);
/* oklch */ color: oklch(30.1% 0.136 288.8);
Tailwind
colors: {
  custom: {
    50: '#705797',
    500: '#30176c',
    950: '#000000',
  },
}
SCSS
$custom: #30176c;
$custom-light: #705797;
$custom-dark: #000000;
JSON
{
  "hex": "#30176c",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 257.647,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3008,
    "c": 0.13625,
    "h": 288.8
  },
  "luminance": 0.02324
}

Semantic roles & 50–950 ramp

primary
#30176C
secondary
#84A23D
accent
#E840B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #30176C

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

Preview Lab → · Contrast checker → · Palette generator →

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