#30148A#30148A

#30148A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.175 H 281.9°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#30148A
RGBrgb(48, 20, 138)
HSLhsl(254, 75%, 31%)
HSVhsv(254, 86%, 54%)
CMYKcmyk(65.2%, 85.5%, 0%, 45.9%)
CIE-LABlab(19.90, 44.97, -59.41)
CIE-LCHlch(19.90, 74.51, 307.12°)
OKLaboklab(33% 0.036 -0.1714)
OKLCHoklch(33% 0.175 281.9)
XYZxyz(6.0551, 2.9632, 24.2927)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30148A #6E8A14
analogous
#14338A #30148A #6B148A
triadic
#30148A #8A3014 #148A30
tetradic
#30148A #8A1433 #6E8A14 #148A6B
square
#30148A #8A1433 #6E8A14 #148A6B
split-complementary
#30148A #8A6B14 #338A14
monochromatic
#0B051F #1D0C55 #30148A #431CBF #5F36E2

Accessibility & contrast

On white

13.18
#30148A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#30148A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30148A
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30148A#FFFFFF#000000##FFFFFF
##30148A1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002C88
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #30148a;
/* rgb */ color: rgb(48, 20, 138);
/* oklch */ color: oklch(33.0% 0.175 281.9);
Tailwind
colors: {
  custom: {
    50: '#7658ad',
    500: '#30148a',
    950: '#000000',
  },
}
SCSS
$custom: #30148a;
$custom-light: #7658ad;
$custom-dark: #000000;
JSON
{
  "hex": "#30148a",
  "rgb": {
    "r": 48,
    "g": 20,
    "b": 138
  },
  "hsl": {
    "h": 254.237,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32999,
    "c": 0.17514,
    "h": 281.9
  },
  "luminance": 0.02964
}

Semantic roles & 50–950 ramp

primary
#30148A
secondary
#9FBE3C
accent
#F136C5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #30148A

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

Preview Lab → · Contrast checker → · Palette generator →

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