#30166C#30166C

#30166C is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.137 H 289.1°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#30166C
RGBrgb(48, 22, 108)
HSLhsl(258, 66%, 25%)
HSVhsv(258, 80%, 42%)
CMYKcmyk(55.6%, 79.6%, 0%, 57.6%)
CIE-LABlab(16.92, 35.06, -45.16)
CIE-LCHlch(16.92, 57.17, 307.82°)
OKLaboklab(29.95% 0.0449 -0.1298)
OKLCHoklch(29.95% 0.137 289.1)
XYZxyz(4.2118, 2.2847, 14.4035)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30166C #526C16
analogous
#16276C #30166C #5B166C
triadic
#30166C #6C3016 #166C30
tetradic
#30166C #6C1627 #526C16 #166C5B
square
#30166C #6C1627 #526C16 #166C5B
split-complementary
#30166C #6C5B16 #276C16
monochromatic
#0B0519 #190C39 #30166C #47209F #5D2BD2

Accessibility & contrast

On white

14.41
#30166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30166C
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30166C#FFFFFF#000000##FFFFFF
##30166C1.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00286A
Tritanopia (blue-blind)
#192E40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #30166c;
/* rgb */ color: rgb(48, 22, 108);
/* oklch */ color: oklch(29.9% 0.137 289.1);
Tailwind
colors: {
  custom: {
    50: '#705697',
    500: '#30166c',
    950: '#000000',
  },
}
SCSS
$custom: #30166c;
$custom-light: #705697;
$custom-dark: #000000;
JSON
{
  "hex": "#30166c",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 258.14,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29949,
    "c": 0.13736,
    "h": 289.1
  },
  "luminance": 0.02285
}

Semantic roles & 50–950 ramp

primary
#30166C
secondary
#83A23C
accent
#E93FB6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #30166C

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

Preview Lab → · Contrast checker → · Palette generator →

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