#30176F#30176F

#30176F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.140 H 288.0°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#30176F
RGBrgb(48, 23, 111)
HSLhsl(257, 66%, 26%)
HSVhsv(257, 79%, 44%)
CMYKcmyk(56.8%, 79.3%, 0%, 56.5%)
CIE-LABlab(17.41, 35.45, -46.30)
CIE-LCHlch(17.41, 58.31, 307.44°)
OKLaboklab(30.39% 0.0432 -0.1332)
OKLCHoklch(30.39% 0.14 288)
XYZxyz(4.3937, 2.3886, 15.2654)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30176F #566F17
analogous
#172A6F #30176F #5C176F
triadic
#30176F #6F3017 #176F30
tetradic
#30176F #6F172A #566F17 #176F5C
square
#30176F #6F172A #566F17 #176F5C
split-complementary
#30176F #6F5C17 #2A6F17
monochromatic
#0B0519 #1A0C3C #30176F #4622A2 #5C2DD3

Accessibility & contrast

On white

14.21
#30176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#30176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30176F
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30176F#FFFFFF#000000##FFFFFF
##30176F1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D72
Deuteranopia (green-blind)
#00286D
Tritanopia (blue-blind)
#163042
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #30176f;
/* rgb */ color: rgb(48, 23, 111);
/* oklch */ color: oklch(30.4% 0.140 288.0);
Tailwind
colors: {
  custom: {
    50: '#705799',
    500: '#30176f',
    950: '#000000',
  },
}
SCSS
$custom: #30176f;
$custom-light: #705799;
$custom-dark: #000000;
JSON
{
  "hex": "#30176f",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 257.045,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30387,
    "c": 0.14,
    "h": 288
  },
  "luminance": 0.02389
}

Semantic roles & 50–950 ramp

primary
#30176F
secondary
#87A53D
accent
#E93FB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #30176F

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

Preview Lab → · Contrast checker → · Palette generator →

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