#30148D#30148D

#30148D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.179 H 281.3°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#30148D
RGBrgb(48, 20, 141)
HSLhsl(254, 75%, 32%)
HSVhsv(254, 86%, 55%)
CMYKcmyk(66%, 85.8%, 0%, 44.7%)
CIE-LABlab(20.25, 45.84, -60.71)
CIE-LCHlch(20.25, 76.07, 307.06°)
OKLaboklab(33.34% 0.0349 -0.1752)
OKLCHoklch(33.34% 0.179 281.3)
XYZxyz(6.2753, 3.0513, 25.4524)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30148D #718D14
analogous
#14358D #30148D #6D148D
triadic
#30148D #8D3014 #148D30
tetradic
#30148D #8D1435 #718D14 #148D6D
square
#30148D #8D1435 #718D14 #148D6D
split-complementary
#30148D #8D6D14 #358D14
monochromatic
#0C0522 #1E0C57 #30148D #421CC3 #6039E3

Accessibility & contrast

On white

13.04
#30148D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#30148D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30148D
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30148D#FFFFFF#000000##FFFFFF
##30148D1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #30148d;
/* rgb */ color: rgb(48, 20, 141);
/* oklch */ color: oklch(33.3% 0.179 281.3);
Tailwind
colors: {
  custom: {
    50: '#7758b0',
    500: '#30148d',
    950: '#000000',
  },
}
SCSS
$custom: #30148d;
$custom-light: #7758b0;
$custom-dark: #000000;
JSON
{
  "hex": "#30148d",
  "rgb": {
    "r": 48,
    "g": 20,
    "b": 141
  },
  "hsl": {
    "h": 253.884,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33344,
    "c": 0.1786,
    "h": 281.3
  },
  "luminance": 0.03052
}

Semantic roles & 50–950 ramp

primary
#30148D
secondary
#A2C13C
accent
#F236C6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #30148D

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

Preview Lab → · Contrast checker → · Palette generator →

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