#30154E#30154E

#30154E is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.100 H 301.7°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#30154E
RGBrgb(48, 21, 78)
HSLhsl(268, 58%, 19%)
HSVhsv(268, 73%, 31%)
CMYKcmyk(38.5%, 73.1%, 0%, 69.4%)
CIE-LABlab(13.91, 26.62, -29.99)
CIE-LCHlch(13.91, 40.10, 311.58°)
OKLaboklab(26.95% 0.0528 -0.0853)
OKLCHoklch(26.95% 0.1 301.7)
XYZxyz(2.8619, 1.7148, 7.3865)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30154E #334E15
analogous
#15174E #30154E #4D154E
triadic
#30154E #4E3015 #154E30
tetradic
#30154E #4E1517 #334E15 #154E4D
square
#30154E #4E1517 #334E15 #154E4D
split-complementary
#30154E #4E4D15 #174E15
monochromatic
#0F0618 #12081E #30154E #4E227E #6B2FAE

Accessibility & contrast

On white

15.64
#30154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#30154E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30154E
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30154E#FFFFFF#000000##FFFFFF
##30154E1.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#00234D
Tritanopia (blue-blind)
#2A222F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #30154e;
/* rgb */ color: rgb(48, 21, 78);
/* oklch */ color: oklch(27.0% 0.100 301.7);
Tailwind
colors: {
  custom: {
    50: '#6b5480',
    500: '#30154e',
    950: '#000000',
  },
}
SCSS
$custom: #30154e;
$custom-light: #6b5480;
$custom-dark: #000000;
JSON
{
  "hex": "#30154e",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 268.421,
    "s": 57.576,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26951,
    "c": 0.10029,
    "h": 301.7
  },
  "luminance": 0.01715
}

Semantic roles & 50–950 ramp

primary
#30154E
secondary
#618639
accent
#E14798
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #30154E

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

Preview Lab → · Contrast checker → · Palette generator →

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