#30168C#30168C

#30168C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.176 H 281.2°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#30168C
RGBrgb(48, 22, 140)
HSLhsl(253, 73%, 32%)
HSVhsv(253, 84%, 55%)
CMYKcmyk(65.7%, 84.3%, 0%, 45.1%)
CIE-LABlab(20.42, 44.70, -59.79)
CIE-LCHlch(20.42, 74.65, 306.78°)
OKLaboklab(33.43% 0.0343 -0.1725)
OKLCHoklch(33.43% 0.176 281.2)
XYZxyz(6.2380, 3.0952, 25.0746)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30168C #728C16
analogous
#16378C #30168C #6B168C
triadic
#30168C #8C3016 #168C30
tetradic
#30168C #8C1637 #728C16 #168C6B
square
#30168C #8C1637 #728C16 #168C6B
split-complementary
#30168C #8C6B16 #378C16
monochromatic
#0C0522 #1E0E57 #30168C #421EC1 #603CE0

Accessibility & contrast

On white

12.97
#30168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#30168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30168C
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30168C#FFFFFF#000000##FFFFFF
##30168C1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #30168c;
/* rgb */ color: rgb(48, 22, 140);
/* oklch */ color: oklch(33.4% 0.176 281.2);
Tailwind
colors: {
  custom: {
    50: '#7659af',
    500: '#30168c',
    950: '#000000',
  },
}
SCSS
$custom: #30168c;
$custom-light: #7659af;
$custom-dark: #000000;
JSON
{
  "hex": "#30168c",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 253.22,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33428,
    "c": 0.17593,
    "h": 281.2
  },
  "luminance": 0.03096
}

Semantic roles & 50–950 ramp

primary
#30168C
secondary
#A3C03E
accent
#F038C7
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #30168C

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

Preview Lab → · Contrast checker → · Palette generator →

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