#30156A#30156A

#30156A is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.136 H 289.9°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#30156A
RGBrgb(48, 21, 106)
HSLhsl(259, 67%, 25%)
HSVhsv(259, 80%, 42%)
CMYKcmyk(54.7%, 80.2%, 0%, 58.4%)
CIE-LABlab(16.53, 34.97, -44.48)
CIE-LCHlch(16.53, 56.58, 308.17°)
OKLaboklab(29.62% 0.0463 -0.1278)
OKLCHoklch(29.62% 0.136 289.9)
XYZxyz(4.0879, 2.2051, 13.8431)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30156A #4F6A15
analogous
#15246A #30156A #5B156A
triadic
#30156A #6A3015 #156A30
tetradic
#30156A #6A1524 #4F6A15 #156A5B
square
#30156A #6A1524 #4F6A15 #156A5B
split-complementary
#30156A #6A5B15 #246A15
monochromatic
#0C051A #190B37 #30156A #471F9D #5E29D0

Accessibility & contrast

On white

14.57
#30156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#30156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30156A
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30156A#FFFFFF#000000##FFFFFF
##30156A1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #30156a;
/* rgb */ color: rgb(48, 21, 106);
/* oklch */ color: oklch(29.6% 0.136 289.9);
Tailwind
colors: {
  custom: {
    50: '#705695',
    500: '#30156a',
    950: '#000000',
  },
}
SCSS
$custom: #30156a;
$custom-light: #705695;
$custom-dark: #000000;
JSON
{
  "hex": "#30156a",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 259.059,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29616,
    "c": 0.13597,
    "h": 289.9
  },
  "luminance": 0.02205
}

Semantic roles & 50–950 ramp

primary
#30156A
secondary
#80A13A
accent
#EA3EB3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #30156A

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

Preview Lab → · Contrast checker → · Palette generator →

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