#30164A#30164A

#30164A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.093 H 303.7°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#30164A
RGBrgb(48, 22, 74)
HSLhsl(270, 54%, 19%)
HSVhsv(270, 70%, 29%)
CMYKcmyk(35.1%, 70.3%, 0%, 71%)
CIE-LABlab(13.81, 24.86, -27.41)
CIE-LCHlch(13.81, 37.01, 312.21°)
OKLaboklab(26.77% 0.0518 -0.0777)
OKLCHoklch(26.77% 0.093 303.7)
XYZxyz(2.7416, 1.6966, 6.6603)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30164A #304A16
analogous
#16164A #30164A #4A164A
triadic
#30164A #4A3016 #164A30
tetradic
#30164A #4A1616 #304A16 #164A4A
square
#30164A #4A1616 #304A16 #164A4A
split-complementary
#30164A #4A4A16 #164A16
monochromatic
#0F0718 #11081B #30164A #4F2479 #6D32A8

Accessibility & contrast

On white

15.68
#30164A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30164A
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30164A#FFFFFF#000000##FFFFFF
##30164A1.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234C
Deuteranopia (green-blind)
#072349
Tritanopia (blue-blind)
#2B212D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #30164a;
/* rgb */ color: rgb(48, 22, 74);
/* oklch */ color: oklch(26.8% 0.093 303.7);
Tailwind
colors: {
  custom: {
    50: '#6b557d',
    500: '#30164a',
    950: '#000000',
  },
}
SCSS
$custom: #30164a;
$custom-light: #6b557d;
$custom-dark: #000000;
JSON
{
  "hex": "#30164a",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 74
  },
  "hsl": {
    "h": 270,
    "s": 54.167,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26772,
    "c": 0.09342,
    "h": 303.7
  },
  "luminance": 0.01697
}

Semantic roles & 50–950 ramp

primary
#30164A
secondary
#5E823A
accent
#DE4A94
background
#F6F5F7
surface
#EBE8EE
border
#C6C4C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #30164A

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

Preview Lab → · Contrast checker → · Palette generator →

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