#30147C#30147C

#30147C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.159 H 285.0°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#30147C
RGBrgb(48, 20, 124)
HSLhsl(256, 72%, 28%)
HSVhsv(256, 84%, 49%)
CMYKcmyk(61.3%, 83.9%, 0%, 51.4%)
CIE-LABlab(18.29, 40.85, -53.21)
CIE-LCHlch(18.29, 67.08, 307.51°)
OKLaboklab(31.42% 0.0411 -0.1533)
OKLCHoklch(31.42% 0.159 285)
XYZxyz(5.1061, 2.5836, 19.2945)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30147C #607C14
analogous
#142C7C #30147C #64147C
triadic
#30147C #7C3014 #147C30
tetradic
#30147C #7C142C #607C14 #147C64
square
#30147C #7C142C #607C14 #147C64
split-complementary
#30147C #7C6414 #2C7C14
monochromatic
#0A041A #1C0B47 #30147C #441DB1 #5D2DDD

Accessibility & contrast

On white

13.84
#30147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30147C
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30147C#FFFFFF#000000##FFFFFF
##30147C1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#023449
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #30147c;
/* rgb */ color: rgb(48, 20, 124);
/* oklch */ color: oklch(31.4% 0.159 285.0);
Tailwind
colors: {
  custom: {
    50: '#7356a3',
    500: '#30147c',
    950: '#000000',
  },
}
SCSS
$custom: #30147c;
$custom-light: #7356a3;
$custom-dark: #000000;
JSON
{
  "hex": "#30147c",
  "rgb": {
    "r": 48,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 256.154,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31423,
    "c": 0.15874,
    "h": 285
  },
  "luminance": 0.02584
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #30147C

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

Preview Lab → · Contrast checker → · Palette generator →

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