#30168E#30168E

#30168E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.178 H 280.9°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#30168E
RGBrgb(48, 22, 142)
HSLhsl(253, 73%, 32%)
HSVhsv(253, 85%, 56%)
CMYKcmyk(66.2%, 84.5%, 0%, 44.3%)
CIE-LABlab(20.65, 45.29, -60.66)
CIE-LCHlch(20.65, 75.70, 306.75°)
OKLaboklab(33.66% 0.0336 -0.1751)
OKLCHoklch(33.66% 0.178 280.9)
XYZxyz(6.3868, 3.1547, 25.8583)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30168E #748E16
analogous
#16388E #30168E #6C168E
triadic
#30168E #8E3016 #168E30
tetradic
#30168E #8E1638 #748E16 #168E6C
square
#30168E #8E1638 #748E16 #168E6C
split-complementary
#30168E #8E6C16 #388E16
monochromatic
#0C0624 #1E0E59 #30168E #421EC3 #613DE1

Accessibility & contrast

On white

12.88
#30168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#30168E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30168E
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30168E#FFFFFF#000000##FFFFFF
##30168E1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #30168e;
/* rgb */ color: rgb(48, 22, 142);
/* oklch */ color: oklch(33.7% 0.178 280.9);
Tailwind
colors: {
  custom: {
    50: '#7759b0',
    500: '#30168e',
    950: '#000000',
  },
}
SCSS
$custom: #30168e;
$custom-light: #7759b0;
$custom-dark: #000000;
JSON
{
  "hex": "#30168e",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 253,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33656,
    "c": 0.17826,
    "h": 280.9
  },
  "luminance": 0.03155
}

Semantic roles & 50–950 ramp

primary
#30168E
secondary
#A5C13F
accent
#F038C8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #30168E

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

Preview Lab → · Contrast checker → · Palette generator →

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