#30148E#30148E

#30148E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.180 H 281.1°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#30148E
RGBrgb(48, 20, 142)
HSLhsl(254, 75%, 32%)
HSVhsv(254, 86%, 56%)
CMYKcmyk(66.2%, 85.9%, 0%, 44.3%)
CIE-LABlab(20.37, 46.13, -61.13)
CIE-LCHlch(20.37, 76.59, 307.04°)
OKLaboklab(33.46% 0.0345 -0.1764)
OKLCHoklch(33.46% 0.18 281.1)
XYZxyz(6.3500, 3.0812, 25.8460)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30148E #728E14
analogous
#14358E #30148E #6D148E
triadic
#30148E #8E3014 #148E30
tetradic
#30148E #8E1435 #728E14 #148E6D
square
#30148E #8E1435 #728E14 #148E6D
split-complementary
#30148E #8E6D14 #358E14
monochromatic
#0C0523 #1E0C58 #30148E #421CC4 #6039E3

Accessibility & contrast

On white

12.99
#30148E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#30148E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30148E
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30148E#FFFFFF#000000##FFFFFF
##30148E1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #30148e;
/* rgb */ color: rgb(48, 20, 142);
/* oklch */ color: oklch(33.5% 0.180 281.1);
Tailwind
colors: {
  custom: {
    50: '#7758b0',
    500: '#30148e',
    950: '#000000',
  },
}
SCSS
$custom: #30148e;
$custom-light: #7758b0;
$custom-dark: #000000;
JSON
{
  "hex": "#30148e",
  "rgb": {
    "r": 48,
    "g": 20,
    "b": 142
  },
  "hsl": {
    "h": 253.77,
    "s": 75.309,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33459,
    "c": 0.17976,
    "h": 281.1
  },
  "luminance": 0.03082
}

Semantic roles & 50–950 ramp

primary
#30148E
secondary
#A3C23C
accent
#F236C7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #30148E

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

Preview Lab → · Contrast checker → · Palette generator →

#30148E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva