#30166D#30166D

#30166D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.139 H 288.8°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#30166D
RGBrgb(48, 22, 109)
HSLhsl(258, 66%, 26%)
HSVhsv(258, 80%, 43%)
CMYKcmyk(56%, 79.8%, 0%, 57.3%)
CIE-LABlab(17.02, 35.36, -45.64)
CIE-LCHlch(17.02, 57.74, 307.77°)
OKLaboklab(30.05% 0.0446 -0.1312)
OKLCHoklch(30.05% 0.139 288.8)
XYZxyz(4.2653, 2.3061, 14.6854)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30166D #536D16
analogous
#16276D #30166D #5B166D
triadic
#30166D #6D3016 #166D30
tetradic
#30166D #6D1627 #536D16 #166D5B
square
#30166D #6D1627 #536D16 #166D5B
split-complementary
#30166D #6D5B16 #276D16
monochromatic
#0B0519 #1A0C3A #30166D #4620A0 #5D2BD3

Accessibility & contrast

On white

14.37
#30166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#30166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30166D
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30166D#FFFFFF#000000##FFFFFF
##30166D1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #30166d;
/* rgb */ color: rgb(48, 22, 109);
/* oklch */ color: oklch(30.1% 0.139 288.8);
Tailwind
colors: {
  custom: {
    50: '#705698',
    500: '#30166d',
    950: '#000000',
  },
}
SCSS
$custom: #30166d;
$custom-light: #705698;
$custom-dark: #000000;
JSON
{
  "hex": "#30166d",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 257.931,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30052,
    "c": 0.1386,
    "h": 288.8
  },
  "luminance": 0.02306
}

Semantic roles & 50–950 ramp

primary
#30166D
secondary
#84A33C
accent
#E93EB6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #30166D

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

Preview Lab → · Contrast checker → · Palette generator →

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