#30157F#30157F

#30157F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.161 H 284.1°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#30157F
RGBrgb(48, 21, 127)
HSLhsl(255, 72%, 29%)
HSVhsv(255, 83%, 50%)
CMYKcmyk(62.2%, 83.5%, 0%, 50.2%)
CIE-LABlab(18.79, 41.28, -54.31)
CIE-LCHlch(18.79, 68.22, 307.24°)
OKLaboklab(31.86% 0.0394 -0.1565)
OKLCHoklch(31.86% 0.161 284.1)
XYZxyz(5.3167, 2.6967, 20.3149)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30157F #647F15
analogous
#152F7F #30157F #65157F
triadic
#30157F #7F3015 #157F30
tetradic
#30157F #7F152F #647F15 #157F65
square
#30157F #7F152F #647F15 #157F65
split-complementary
#30157F #7F6515 #2F7F15
monochromatic
#0A041A #1C0C4A #30157F #441EB4 #5D31DD

Accessibility & contrast

On white

13.64
#30157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#30157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30157F
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30157F#FFFFFF#000000##FFFFFF
##30157F1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #30157f;
/* rgb */ color: rgb(48, 21, 127);
/* oklch */ color: oklch(31.9% 0.161 284.1);
Tailwind
colors: {
  custom: {
    50: '#7457a5',
    500: '#30157f',
    950: '#000000',
  },
}
SCSS
$custom: #30157f;
$custom-light: #7457a5;
$custom-dark: #000000;
JSON
{
  "hex": "#30157f",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 255.283,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31863,
    "c": 0.16143,
    "h": 284.1
  },
  "luminance": 0.02697
}

Semantic roles & 50–950 ramp

primary
#30157F
secondary
#95B43C
accent
#EE39C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30157F

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

Preview Lab → · Contrast checker → · Palette generator →

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