#30147D#30147D

#30147D is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.160 H 284.7°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#30147D
RGBrgb(48, 20, 125)
HSLhsl(256, 72%, 28%)
HSVhsv(256, 84%, 49%)
CMYKcmyk(61.6%, 84%, 0%, 51%)
CIE-LABlab(18.40, 41.15, -53.66)
CIE-LCHlch(18.40, 67.62, 307.48°)
OKLaboklab(31.53% 0.0407 -0.1547)
OKLCHoklch(31.53% 0.16 284.7)
XYZxyz(5.1696, 2.6090, 19.6292)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30147D #617D14
analogous
#142C7D #30147D #64147D
triadic
#30147D #7D3014 #147D30
tetradic
#30147D #7D142C #617D14 #147D64
square
#30147D #7D142C #617D14 #147D64
split-complementary
#30147D #7D6414 #2C7D14
monochromatic
#0A041A #1C0C48 #30147D #441CB2 #5D2EDE

Accessibility & contrast

On white

13.80
#30147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#30147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30147D
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30147D#FFFFFF#000000##FFFFFF
##30147D1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #30147d;
/* rgb */ color: rgb(48, 20, 125);
/* oklch */ color: oklch(31.5% 0.160 284.7);
Tailwind
colors: {
  custom: {
    50: '#7357a4',
    500: '#30147d',
    950: '#000000',
  },
}
SCSS
$custom: #30147d;
$custom-light: #7357a4;
$custom-dark: #000000;
JSON
{
  "hex": "#30147d",
  "rgb": {
    "r": 48,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 256,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31533,
    "c": 0.15992,
    "h": 284.7
  },
  "luminance": 0.02609
}

Semantic roles & 50–950 ramp

primary
#30147D
secondary
#92B23A
accent
#EF39BE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30147D

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

Preview Lab → · Contrast checker → · Palette generator →

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