#30157A#30157A

#30157A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.155 H 285.3°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#30157A
RGBrgb(48, 21, 122)
HSLhsl(256, 71%, 28%)
HSVhsv(256, 83%, 48%)
CMYKcmyk(60.7%, 82.8%, 0%, 52.2%)
CIE-LABlab(18.23, 39.79, -52.04)
CIE-LCHlch(18.23, 65.51, 307.40°)
OKLaboklab(31.31% 0.0411 -0.1499)
OKLCHoklch(31.31% 0.155 285.3)
XYZxyz(4.9989, 2.5695, 18.6411)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30157A #5F7A15
analogous
#152C7A #30157A #62157A
triadic
#30157A #7A3015 #157A30
tetradic
#30157A #7A152C #5F7A15 #157A62
square
#30157A #7A152C #5F7A15 #157A62
split-complementary
#30157A #7A6215 #2C7A15
monochromatic
#0A041A #1B0C46 #30157A #451EAE #5D2EDB

Accessibility & contrast

On white

13.87
#30157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#30157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30157A
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30157A#FFFFFF#000000##FFFFFF
##30157A1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002978
Tritanopia (blue-blind)
#063348
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #30157a;
/* rgb */ color: rgb(48, 21, 122);
/* oklch */ color: oklch(31.3% 0.155 285.3);
Tailwind
colors: {
  custom: {
    50: '#7357a2',
    500: '#30157a',
    950: '#000000',
  },
}
SCSS
$custom: #30157a;
$custom-light: #7357a2;
$custom-dark: #000000;
JSON
{
  "hex": "#30157a",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 256.04,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31313,
    "c": 0.15547,
    "h": 285.3
  },
  "luminance": 0.0257
}

Semantic roles & 50–950 ramp

primary
#30157A
secondary
#90AF3B
accent
#ED3ABE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30157A

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

Preview Lab → · Contrast checker → · Palette generator →

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