#30157B#30157B

#30157B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.157 H 285.1°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#30157B
RGBrgb(48, 21, 123)
HSLhsl(256, 71%, 28%)
HSVhsv(256, 83%, 48%)
CMYKcmyk(61%, 82.9%, 0%, 51.8%)
CIE-LABlab(18.34, 40.09, -52.49)
CIE-LCHlch(18.34, 66.05, 307.37°)
OKLaboklab(31.42% 0.0408 -0.1513)
OKLCHoklch(31.42% 0.157 285.1)
XYZxyz(5.0612, 2.5945, 18.9691)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30157B #607B15
analogous
#152D7B #30157B #63157B
triadic
#30157B #7B3015 #157B30
tetradic
#30157B #7B152D #607B15 #157B63
square
#30157B #7B152D #607B15 #157B63
split-complementary
#30157B #7B6315 #2D7B15
monochromatic
#0A041A #1C0C47 #30157B #441EAF #5D2FDB

Accessibility & contrast

On white

13.82
#30157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30157B
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30157B#FFFFFF#000000##FFFFFF
##30157B1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#043448
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #30157b;
/* rgb */ color: rgb(48, 21, 123);
/* oklch */ color: oklch(31.4% 0.157 285.1);
Tailwind
colors: {
  custom: {
    50: '#7357a2',
    500: '#30157b',
    950: '#000000',
  },
}
SCSS
$custom: #30157b;
$custom-light: #7357a2;
$custom-dark: #000000;
JSON
{
  "hex": "#30157b",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 255.882,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31423,
    "c": 0.15666,
    "h": 285.1
  },
  "luminance": 0.02595
}

Semantic roles & 50–950 ramp

primary
#30157B
secondary
#91B03B
accent
#EE3ABE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30157B

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

Preview Lab → · Contrast checker → · Palette generator →

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