#30147E#30147E

#30147E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.161 H 284.5°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#30147E
RGBrgb(48, 20, 126)
HSLhsl(256, 73%, 29%)
HSVhsv(256, 84%, 49%)
CMYKcmyk(61.9%, 84.1%, 0%, 50.6%)
CIE-LABlab(18.52, 41.44, -54.12)
CIE-LCHlch(18.52, 68.16, 307.45°)
OKLaboklab(31.64% 0.0403 -0.156)
OKLCHoklch(31.64% 0.161 284.5)
XYZxyz(5.2338, 2.6347, 19.9674)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30147E #627E14
analogous
#142D7E #30147E #65147E
triadic
#30147E #7E3014 #147E30
tetradic
#30147E #7E142D #627E14 #147E65
square
#30147E #7E142D #627E14 #147E65
split-complementary
#30147E #7E6514 #2D7E14
monochromatic
#0A041A #1C0C49 #30147E #441CB3 #5D2EDE

Accessibility & contrast

On white

13.75
#30147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#30147E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30147E
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30147E#FFFFFF#000000##FFFFFF
##30147E1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #30147e;
/* rgb */ color: rgb(48, 20, 126);
/* oklch */ color: oklch(31.6% 0.161 284.5);
Tailwind
colors: {
  custom: {
    50: '#7457a5',
    500: '#30147e',
    950: '#000000',
  },
}
SCSS
$custom: #30147e;
$custom-light: #7457a5;
$custom-dark: #000000;
JSON
{
  "hex": "#30147e",
  "rgb": {
    "r": 48,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 255.849,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31644,
    "c": 0.16111,
    "h": 284.5
  },
  "luminance": 0.02635
}

Semantic roles & 50–950 ramp

primary
#30147E
secondary
#93B33A
accent
#EF38BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30147E

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

Preview Lab → · Contrast checker → · Palette generator →

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