#30157C#30157C

#30157C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.158 H 284.8°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#30157C
RGBrgb(48, 21, 124)
HSLhsl(256, 71%, 28%)
HSVhsv(256, 83%, 49%)
CMYKcmyk(61.3%, 83.1%, 0%, 51.4%)
CIE-LABlab(18.45, 40.39, -52.95)
CIE-LCHlch(18.45, 66.60, 307.34°)
OKLaboklab(31.53% 0.0404 -0.1526)
OKLCHoklch(31.53% 0.158 284.8)
XYZxyz(5.1241, 2.6196, 19.3005)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30157C #617C15
analogous
#152D7C #30157C #63157C
triadic
#30157C #7C3015 #157C30
tetradic
#30157C #7C152D #617C15 #157C63
square
#30157C #7C152D #617C15 #157C63
split-complementary
#30157C #7C6315 #2D7C15
monochromatic
#0A041A #1C0C48 #30157C #441EB0 #5D30DC

Accessibility & contrast

On white

13.78
#30157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#30157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30157C
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30157C#FFFFFF#000000##FFFFFF
##30157C1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#023449
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #30157c;
/* rgb */ color: rgb(48, 21, 124);
/* oklch */ color: oklch(31.5% 0.158 284.8);
Tailwind
colors: {
  custom: {
    50: '#7357a3',
    500: '#30157c',
    950: '#000000',
  },
}
SCSS
$custom: #30157c;
$custom-light: #7357a3;
$custom-dark: #000000;
JSON
{
  "hex": "#30157c",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 255.728,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31532,
    "c": 0.15786,
    "h": 284.8
  },
  "luminance": 0.0262
}

Semantic roles & 50–950 ramp

primary
#30157C
secondary
#92B13C
accent
#EE3ABF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30157C

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

Preview Lab → · Contrast checker → · Palette generator →

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