#30156C#30156C

#30156C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.138 H 289.3°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#30156C
RGBrgb(48, 21, 108)
HSLhsl(259, 67%, 25%)
HSVhsv(259, 81%, 42%)
CMYKcmyk(55.6%, 80.6%, 0%, 57.6%)
CIE-LABlab(16.73, 35.58, -45.45)
CIE-LCHlch(16.73, 57.72, 308.05°)
OKLaboklab(29.82% 0.0457 -0.1307)
OKLCHoklch(29.82% 0.138 289.3)
XYZxyz(4.1931, 2.2472, 14.3973)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30156C #516C15
analogous
#15256C #30156C #5C156C
triadic
#30156C #6C3015 #156C30
tetradic
#30156C #6C1525 #516C15 #156C5C
square
#30156C #6C1525 #516C15 #156C5C
split-complementary
#30156C #6C5C15 #256C15
monochromatic
#0B051A #190B39 #30156C #471F9F #5E29D2

Accessibility & contrast

On white

14.49
#30156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#30156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30156C
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30156C#FFFFFF#000000##FFFFFF
##30156C1.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00276A
Tritanopia (blue-blind)
#192E40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #30156c;
/* rgb */ color: rgb(48, 21, 108);
/* oklch */ color: oklch(29.8% 0.138 289.3);
Tailwind
colors: {
  custom: {
    50: '#705697',
    500: '#30156c',
    950: '#000000',
  },
}
SCSS
$custom: #30156c;
$custom-light: #705697;
$custom-dark: #000000;
JSON
{
  "hex": "#30156c",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 258.621,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29822,
    "c": 0.13844,
    "h": 289.3
  },
  "luminance": 0.02247
}

Semantic roles & 50–950 ramp

primary
#30156C
secondary
#82A33A
accent
#EA3DB5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #30156C

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

Preview Lab → · Contrast checker → · Palette generator →

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