#30154C#30154C

#30154C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.098 H 302.9°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#30154C
RGBrgb(48, 21, 76)
HSLhsl(269, 57%, 19%)
HSVhsv(269, 72%, 30%)
CMYKcmyk(36.8%, 72.4%, 0%, 70.2%)
CIE-LABlab(13.75, 26.04, -28.89)
CIE-LCHlch(13.75, 38.89, 312.03°)
OKLaboklab(26.78% 0.053 -0.082)
OKLCHoklch(26.78% 0.098 302.9)
XYZxyz(2.7913, 1.6865, 7.0146)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30154C #314C15
analogous
#15164C #30154C #4C154C
triadic
#30154C #4C3015 #154C30
tetradic
#30154C #4C1516 #314C15 #154C4C
square
#30154C #4C1516 #314C15 #154C4C
split-complementary
#30154C #4C4C15 #164C15
monochromatic
#0F0718 #12081C #30154C #4E227C #6D2FAC

Accessibility & contrast

On white

15.70
#30154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30154C
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30154C#FFFFFF#000000##FFFFFF
##30154C1.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#03234B
Tritanopia (blue-blind)
#2A212E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #30154c;
/* rgb */ color: rgb(48, 21, 76);
/* oklch */ color: oklch(26.8% 0.098 302.9);
Tailwind
colors: {
  custom: {
    50: '#6b547e',
    500: '#30154c',
    950: '#000000',
  },
}
SCSS
$custom: #30154c;
$custom-light: #6b547e;
$custom-dark: #000000;
JSON
{
  "hex": "#30154c",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 269.455,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2678,
    "c": 0.09767,
    "h": 302.9
  },
  "luminance": 0.01687
}

Semantic roles & 50–950 ramp

primary
#30154C
secondary
#5F8439
accent
#E04895
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #30154C

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

Preview Lab → · Contrast checker → · Palette generator →

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