#30166A#30166A

#30166A is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.135 H 289.7°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#30166A
RGBrgb(48, 22, 106)
HSLhsl(259, 66%, 25%)
HSVhsv(259, 79%, 42%)
CMYKcmyk(54.7%, 79.2%, 0%, 58.4%)
CIE-LABlab(16.71, 34.45, -44.18)
CIE-LCHlch(16.71, 56.02, 307.94°)
OKLaboklab(29.74% 0.0455 -0.127)
OKLCHoklch(29.74% 0.135 289.7)
XYZxyz(4.1066, 2.2426, 13.8494)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30166A #506A16
analogous
#16266A #30166A #5A166A
triadic
#30166A #6A3016 #166A30
tetradic
#30166A #6A1626 #506A16 #166A5A
square
#30166A #6A1626 #506A16 #166A5A
split-complementary
#30166A #6A5A16 #266A16
monochromatic
#0B0519 #190B37 #30166A #47219D #5E2BCF

Accessibility & contrast

On white

14.50
#30166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#30166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30166A
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30166A#FFFFFF#000000##FFFFFF
##30166A1.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002768
Tritanopia (blue-blind)
#1B2D3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #30166a;
/* rgb */ color: rgb(48, 22, 106);
/* oklch */ color: oklch(29.7% 0.135 289.7);
Tailwind
colors: {
  custom: {
    50: '#705695',
    500: '#30166a',
    950: '#000000',
  },
}
SCSS
$custom: #30166a;
$custom-light: #705695;
$custom-dark: #000000;
JSON
{
  "hex": "#30166a",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 258.571,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29744,
    "c": 0.13486,
    "h": 289.7
  },
  "luminance": 0.02243
}

Semantic roles & 50–950 ramp

primary
#30166A
secondary
#81A03B
accent
#E93FB4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #30166A

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

Preview Lab → · Contrast checker → · Palette generator →

#30166A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva