#30147F#30147F

#30147F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.162 H 284.3°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#30147F
RGBrgb(48, 20, 127)
HSLhsl(256, 73%, 29%)
HSVhsv(256, 84%, 50%)
CMYKcmyk(62.2%, 84.3%, 0%, 50.2%)
CIE-LABlab(18.63, 41.74, -54.56)
CIE-LCHlch(18.63, 68.70, 307.41°)
OKLaboklab(31.76% 0.04 -0.1573)
OKLCHoklch(31.76% 0.162 284.3)
XYZxyz(5.2987, 2.6606, 20.3089)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30147F #637F14
analogous
#142E7F #30147F #66147F
triadic
#30147F #7F3014 #147F30
tetradic
#30147F #7F142E #637F14 #147F66
square
#30147F #7F142E #637F14 #147F66
split-complementary
#30147F #7F6614 #2E7F14
monochromatic
#0A041A #1C0C4A #30147F #441CB4 #5D2FDE

Accessibility & contrast

On white

13.71
#30147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30147F
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30147F#FFFFFF#000000##FFFFFF
##30147F1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #30147f;
/* rgb */ color: rgb(48, 20, 127);
/* oklch */ color: oklch(31.8% 0.162 284.3);
Tailwind
colors: {
  custom: {
    50: '#7457a5',
    500: '#30147f',
    950: '#000000',
  },
}
SCSS
$custom: #30147f;
$custom-light: #7457a5;
$custom-dark: #000000;
JSON
{
  "hex": "#30147f",
  "rgb": {
    "r": 48,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 255.701,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31756,
    "c": 0.16229,
    "h": 284.3
  },
  "luminance": 0.02661
}

Semantic roles & 50–950 ramp

primary
#30147F
secondary
#94B43B
accent
#EF38C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30147F

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

Preview Lab → · Contrast checker → · Palette generator →

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