#30156F#30156F

#30156F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.142 H 288.4°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#30156F
RGBrgb(48, 21, 111)
HSLhsl(258, 68%, 26%)
HSVhsv(258, 81%, 44%)
CMYKcmyk(56.8%, 81.1%, 0%, 56.5%)
CIE-LABlab(17.05, 36.48, -46.89)
CIE-LCHlch(17.05, 59.41, 307.88°)
OKLaboklab(30.14% 0.0448 -0.1349)
OKLCHoklch(30.14% 0.142 288.4)
XYZxyz(4.3555, 2.3122, 15.2526)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30156F #546F15
analogous
#15276F #30156F #5D156F
triadic
#30156F #6F3015 #156F30
tetradic
#30156F #6F1527 #546F15 #156F5D
square
#30156F #6F1527 #546F15 #156F5D
split-complementary
#30156F #6F5D15 #276F15
monochromatic
#0B051A #1A0B3C #30156F #461FA2 #5D28D6

Accessibility & contrast

On white

14.36
#30156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#30156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30156F
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30156F#FFFFFF#000000##FFFFFF
##30156F1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #30156f;
/* rgb */ color: rgb(48, 21, 111);
/* oklch */ color: oklch(30.1% 0.142 288.4);
Tailwind
colors: {
  custom: {
    50: '#715699',
    500: '#30156f',
    950: '#000000',
  },
}
SCSS
$custom: #30156f;
$custom-light: #715699;
$custom-dark: #000000;
JSON
{
  "hex": "#30156f",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 258,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30135,
    "c": 0.14213,
    "h": 288.4
  },
  "luminance": 0.02312
}

Semantic roles & 50–950 ramp

primary
#30156F
secondary
#85A53A
accent
#EB3DB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #30156F

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

Preview Lab → · Contrast checker → · Palette generator →

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