#30154A#30154A

#30154A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.095 H 304.0°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#30154A
RGBrgb(48, 21, 74)
HSLhsl(271, 56%, 19%)
HSVhsv(271, 72%, 29%)
CMYKcmyk(35.1%, 71.6%, 0%, 71%)
CIE-LABlab(13.59, 25.47, -27.77)
CIE-LCHlch(13.59, 37.68, 312.52°)
OKLaboklab(26.61% 0.0532 -0.0788)
OKLCHoklch(26.61% 0.095 304)
XYZxyz(2.7228, 1.6591, 6.6540)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30154A #2F4A15
analogous
#15154A #30154A #4A1549
triadic
#30154A #4A3015 #154A30
tetradic
#30154A #4A1515 #2F4A15 #15494A
square
#30154A #4A1515 #2F4A15 #15494A
split-complementary
#30154A #494A15 #154A15
monochromatic
#0F0718 #11071A #30154A #4F237A #6E30A9

Accessibility & contrast

On white

15.77
#30154A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#30154A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30154A
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30154A#FFFFFF#000000##FFFFFF
##30154A1.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224C
Deuteranopia (green-blind)
#062349
Tritanopia (blue-blind)
#2B202D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #30154a;
/* rgb */ color: rgb(48, 21, 74);
/* oklch */ color: oklch(26.6% 0.095 304.0);
Tailwind
colors: {
  custom: {
    50: '#6b547d',
    500: '#30154a',
    950: '#000000',
  },
}
SCSS
$custom: #30154a;
$custom-light: #6b547d;
$custom-dark: #000000;
JSON
{
  "hex": "#30154a",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 74
  },
  "hsl": {
    "h": 270.566,
    "s": 55.789,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26612,
    "c": 0.09504,
    "h": 304
  },
  "luminance": 0.01659
}

Semantic roles & 50–950 ramp

primary
#30154A
secondary
#5D8239
accent
#DF4992
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #30154A

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

Preview Lab → · Contrast checker → · Palette generator →

#30154A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva