#30166F#30166F

#30166F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.141 H 288.2°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#30166F
RGBrgb(48, 22, 111)
HSLhsl(258, 67%, 26%)
HSVhsv(258, 80%, 44%)
CMYKcmyk(56.8%, 80.2%, 0%, 56.5%)
CIE-LABlab(17.22, 35.97, -46.60)
CIE-LCHlch(17.22, 58.87, 307.66°)
OKLaboklab(30.26% 0.044 -0.134)
OKLCHoklch(30.26% 0.141 288.2)
XYZxyz(4.3742, 2.3497, 15.2589)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30166F #556F16
analogous
#16286F #30166F #5C166F
triadic
#30166F #6F3016 #166F30
tetradic
#30166F #6F1628 #556F16 #166F5C
square
#30166F #6F1628 #556F16 #166F5C
split-complementary
#30166F #6F5C16 #286F16
monochromatic
#0B051A #1A0C3C #30166F #4620A2 #5C2BD5

Accessibility & contrast

On white

14.29
#30166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#30166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30166F
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30166F#FFFFFF#000000##FFFFFF
##30166F1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00286D
Tritanopia (blue-blind)
#162F42
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #30166f;
/* rgb */ color: rgb(48, 22, 111);
/* oklch */ color: oklch(30.3% 0.141 288.2);
Tailwind
colors: {
  custom: {
    50: '#705799',
    500: '#30166f',
    950: '#000000',
  },
}
SCSS
$custom: #30166f;
$custom-light: #705799;
$custom-dark: #000000;
JSON
{
  "hex": "#30166f",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 257.528,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30259,
    "c": 0.14108,
    "h": 288.2
  },
  "luminance": 0.0235
}

Semantic roles & 50–950 ramp

primary
#30166F
secondary
#86A53C
accent
#EA3EB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #30166F

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

Preview Lab → · Contrast checker → · Palette generator →

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