#30176D#30176D

#30176D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.138 H 288.5°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#30176D
RGBrgb(48, 23, 109)
HSLhsl(257, 65%, 26%)
HSVhsv(257, 79%, 43%)
CMYKcmyk(56%, 78.9%, 0%, 57.3%)
CIE-LABlab(17.20, 34.83, -45.33)
CIE-LCHlch(17.20, 57.17, 307.54°)
OKLaboklab(30.18% 0.0437 -0.1304)
OKLCHoklch(30.18% 0.138 288.5)
XYZxyz(4.2848, 2.3451, 14.6919)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30176D #546D17
analogous
#17296D #30176D #5B176D
triadic
#30176D #6D3017 #176D30
tetradic
#30176D #6D1729 #546D17 #176D5B
square
#30176D #6D1729 #546D17 #176D5B
split-complementary
#30176D #6D5B17 #296D17
monochromatic
#0B0519 #1A0C3A #30176D #4622A0 #5D2CD2

Accessibility & contrast

On white

14.30
#30176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#30176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30176D
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30176D#FFFFFF#000000##FFFFFF
##30176D1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6F
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#182F41
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #30176d;
/* rgb */ color: rgb(48, 23, 109);
/* oklch */ color: oklch(30.2% 0.138 288.5);
Tailwind
colors: {
  custom: {
    50: '#705798',
    500: '#30176d',
    950: '#000000',
  },
}
SCSS
$custom: #30176d;
$custom-light: #705798;
$custom-dark: #000000;
JSON
{
  "hex": "#30176d",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 257.442,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30182,
    "c": 0.1375,
    "h": 288.5
  },
  "luminance": 0.02345
}

Semantic roles & 50–950 ramp

primary
#30176D
secondary
#85A33D
accent
#E840B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #30176D

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

Preview Lab → · Contrast checker → · Palette generator →

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