#30173A#30173A

#30173A is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.7% C 0.070 H 315.5°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#30173A
RGBrgb(48, 23, 58)
HSLhsl(283, 43%, 16%)
HSVhsv(283, 60%, 23%)
CMYKcmyk(17.2%, 60.3%, 0%, 77.3%)
CIE-LABlab(12.90, 19.81, -17.64)
CIE-LCHlch(12.90, 26.53, 318.32°)
OKLaboklab(25.74% 0.05 -0.0491)
OKLCHoklch(25.74% 0.07 315.5)
XYZxyz(2.2889, 1.5467, 4.1801)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30173A #213A17
analogous
#1E173A #30173A #3A1732
triadic
#30173A #3A3017 #173A30
tetradic
#30173A #3A1E17 #213A17 #17323A
square
#30173A #3A1E17 #213A17 #17323A
split-complementary
#30173A #323A17 #173A1E
monochromatic
#120916 #120916 #30173A #542866 #793A92

Accessibility & contrast

On white

16.04
#30173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#30173A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30173A
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30173A#FFFFFF#000000##FFFFFF
##30173A1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F203B
Deuteranopia (green-blind)
#172239
Tritanopia (blue-blind)
#2F1C25
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #30173a;
/* rgb */ color: rgb(48, 23, 58);
/* oklch */ color: oklch(25.7% 0.070 315.5);
Tailwind
colors: {
  custom: {
    50: '#695570',
    500: '#30173a',
    950: '#000000',
  },
}
SCSS
$custom: #30173a;
$custom-light: #695570;
$custom-dark: #000000;
JSON
{
  "hex": "#30173a",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 282.857,
    "s": 43.21,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25744,
    "c": 0.07007,
    "h": 315.5
  },
  "luminance": 0.01547
}

Semantic roles & 50–950 ramp

primary
#30173A
secondary
#4B713C
accent
#D35579
background
#F6F5F6
surface
#EBE8EC
border
#C6C4C7
text
#060307
muted
#7A787A

Preview Lab

Preview with #30173A

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

Preview Lab → · Contrast checker → · Palette generator →

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