#30164C#30164C

#30164C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.096 H 302.5°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#30164C
RGBrgb(48, 22, 76)
HSLhsl(269, 55%, 19%)
HSVhsv(269, 71%, 30%)
CMYKcmyk(36.8%, 71.1%, 0%, 70.2%)
CIE-LABlab(13.97, 25.44, -28.53)
CIE-LCHlch(13.97, 38.23, 311.72°)
OKLaboklab(26.94% 0.0517 -0.081)
OKLCHoklch(26.94% 0.096 302.5)
XYZxyz(2.8100, 1.7240, 7.0208)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30164C #324C16
analogous
#16174C #30164C #4B164C
triadic
#30164C #4C3016 #164C30
tetradic
#30164C #4C1617 #324C16 #164C4B
square
#30164C #4C1617 #324C16 #164C4B
split-complementary
#30164C #4C4B16 #174C16
monochromatic
#0F0718 #12081D #30164C #4E247B #6C31AB

Accessibility & contrast

On white

15.62
#30164C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30164C
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30164C#FFFFFF#000000##FFFFFF
##30164C1.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#04234B
Tritanopia (blue-blind)
#2A222E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #30164c;
/* rgb */ color: rgb(48, 22, 76);
/* oklch */ color: oklch(26.9% 0.096 302.5);
Tailwind
colors: {
  custom: {
    50: '#6b557e',
    500: '#30164c',
    950: '#000000',
  },
}
SCSS
$custom: #30164c;
$custom-light: #6b557e;
$custom-dark: #000000;
JSON
{
  "hex": "#30164c",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 76
  },
  "hsl": {
    "h": 268.889,
    "s": 55.102,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26938,
    "c": 0.09607,
    "h": 302.5
  },
  "luminance": 0.01724
}

Semantic roles & 50–950 ramp

primary
#30164C
secondary
#60843A
accent
#DE4997
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #30164C

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

Preview Lab → · Contrast checker → · Palette generator →

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