#30147B#30147B

#30147B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.158 H 285.2°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#30147B
RGBrgb(48, 20, 123)
HSLhsl(256, 72%, 28%)
HSVhsv(256, 84%, 48%)
CMYKcmyk(61%, 83.7%, 0%, 51.8%)
CIE-LABlab(18.18, 40.55, -52.76)
CIE-LCHlch(18.18, 66.54, 307.55°)
OKLaboklab(31.31% 0.0414 -0.152)
OKLCHoklch(31.31% 0.158 285.2)
XYZxyz(5.0431, 2.5584, 18.9631)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30147B #5F7B14
analogous
#142B7B #30147B #63147B
triadic
#30147B #7B3014 #147B30
tetradic
#30147B #7B142B #5F7B14 #147B63
square
#30147B #7B142B #5F7B14 #147B63
split-complementary
#30147B #7B6314 #2B7B14
monochromatic
#0A041A #1B0B46 #30147B #451DB0 #5D2DDD

Accessibility & contrast

On white

13.89
#30147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#30147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30147B
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30147B#FFFFFF#000000##FFFFFF
##30147B1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#043348
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #30147b;
/* rgb */ color: rgb(48, 20, 123);
/* oklch */ color: oklch(31.3% 0.158 285.2);
Tailwind
colors: {
  custom: {
    50: '#7356a2',
    500: '#30147b',
    950: '#000000',
  },
}
SCSS
$custom: #30147b;
$custom-light: #7356a2;
$custom-dark: #000000;
JSON
{
  "hex": "#30147b",
  "rgb": {
    "r": 48,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 256.311,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31312,
    "c": 0.15756,
    "h": 285.2
  },
  "luminance": 0.02559
}

Semantic roles & 50–950 ramp

primary
#30147B
secondary
#90B13A
accent
#EF39BD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30147B

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

Preview Lab → · Contrast checker → · Palette generator →

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