#30159F#30159F

#30159F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.198 H 278.1°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#30159F
RGBrgb(48, 21, 159)
HSLhsl(252, 77%, 35%)
HSVhsv(252, 87%, 62%)
CMYKcmyk(69.8%, 86.8%, 0%, 37.6%)
CIE-LABlab(22.54, 50.63, -68.02)
CIE-LCHlch(22.54, 84.80, 306.66°)
OKLaboklab(35.54% 0.0281 -0.1964)
OKLCHoklch(35.54% 0.198 278.1)
XYZxyz(7.7431, 3.6672, 33.0940)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30159F #849F15
analogous
#153F9F #30159F #75159F
triadic
#30159F #9F3015 #159F30
tetradic
#30159F #9F153F #849F15 #159F75
square
#30159F #9F153F #849F15 #159F75
split-complementary
#30159F #9F7515 #3F9F15
monochromatic
#0F0733 #200E69 #30159F #401CD5 #6748E7

Accessibility & contrast

On white

12.11
#30159F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#30159F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30159F
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30159F#FFFFFF#000000##FFFFFF
##30159F1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA3
Deuteranopia (green-blind)
#00309D
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #30159f;
/* rgb */ color: rgb(48, 21, 159);
/* oklch */ color: oklch(35.5% 0.198 278.1);
Tailwind
colors: {
  custom: {
    50: '#7a5abd',
    500: '#30159f',
    950: '#000000',
  },
}
SCSS
$custom: #30159f;
$custom-light: #7a5abd;
$custom-dark: #000000;
JSON
{
  "hex": "#30159f",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 159
  },
  "hsl": {
    "h": 251.739,
    "s": 76.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35536,
    "c": 0.19843,
    "h": 278.1
  },
  "luminance": 0.03668
}

Semantic roles & 50–950 ramp

primary
#30159F
secondary
#AFC848
accent
#F335CE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #30159F

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

Preview Lab → · Contrast checker → · Palette generator →

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