#30149F#30149F

#30149F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.4% C 0.199 H 278.2°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#30149F
RGBrgb(48, 20, 159)
HSLhsl(252, 78%, 35%)
HSVhsv(252, 87%, 62%)
CMYKcmyk(69.8%, 87.4%, 0%, 37.6%)
CIE-LABlab(22.41, 51.01, -68.23)
CIE-LCHlch(22.41, 85.19, 306.78°)
OKLaboklab(35.45% 0.0284 -0.197)
OKLCHoklch(35.45% 0.199 278.2)
XYZxyz(7.7251, 3.6312, 33.0880)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30149F #839F14
analogous
#143E9F #30149F #75149F
triadic
#30149F #9F3014 #149F30
tetradic
#30149F #9F143E #839F14 #149F75
square
#30149F #9F143E #839F14 #149F75
split-complementary
#30149F #9F7514 #3E9F14
monochromatic
#0F0632 #200D69 #30149F #401BD5 #6646E8

Accessibility & contrast

On white

12.16
#30149F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30149F
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30149F#FFFFFF#000000##FFFFFF
##30149F1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.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: #30149f;
/* rgb */ color: rgb(48, 20, 159);
/* oklch */ color: oklch(35.4% 0.199 278.2);
Tailwind
colors: {
  custom: {
    50: '#7b59bd',
    500: '#30149f',
    950: '#000000',
  },
}
SCSS
$custom: #30149f;
$custom-light: #7b59bd;
$custom-dark: #000000;
JSON
{
  "hex": "#30149f",
  "rgb": {
    "r": 48,
    "g": 20,
    "b": 159
  },
  "hsl": {
    "h": 252.086,
    "s": 77.654,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3545,
    "c": 0.19907,
    "h": 278.2
  },
  "luminance": 0.03632
}

Semantic roles & 50–950 ramp

primary
#30149F
secondary
#AEC846
accent
#F434CD
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #30149F

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

Preview Lab → · Contrast checker → · Palette generator →

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