#30173B#30173B

#30173B is a dark, moderate purple. Relative luminance 0.016; OKLCH L 25.8% C 0.071 H 314.5°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#30173B
RGBrgb(48, 23, 59)
HSLhsl(282, 44%, 16%)
HSVhsv(282, 61%, 23%)
CMYKcmyk(18.6%, 61%, 0%, 76.9%)
CIE-LABlab(12.97, 20.07, -18.25)
CIE-LCHlch(12.97, 27.13, 317.73°)
OKLaboklab(25.81% 0.0501 -0.0509)
OKLCHoklch(25.81% 0.071 314.5)
XYZxyz(2.3146, 1.5570, 4.3154)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30173B #223B17
analogous
#1E173B #30173B #3B1734
triadic
#30173B #3B3017 #173B30
tetradic
#30173B #3B1E17 #223B17 #17343B
square
#30173B #3B1E17 #223B17 #17343B
split-complementary
#30173B #343B17 #173B1E
monochromatic
#120916 #120916 #30173B #542867 #783993

Accessibility & contrast

On white

16.01
#30173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30173B
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30173B#FFFFFF#000000##FFFFFF
##30173B1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E203C
Deuteranopia (green-blind)
#16223A
Tritanopia (blue-blind)
#2F1D26
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #30173b;
/* rgb */ color: rgb(48, 23, 59);
/* oklch */ color: oklch(25.8% 0.071 314.5);
Tailwind
colors: {
  custom: {
    50: '#695571',
    500: '#30173b',
    950: '#000000',
  },
}
SCSS
$custom: #30173b;
$custom-light: #695571;
$custom-dark: #000000;
JSON
{
  "hex": "#30173b",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 281.667,
    "s": 43.902,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25811,
    "c": 0.07141,
    "h": 314.5
  },
  "luminance": 0.01557
}

Semantic roles & 50–950 ramp

primary
#30173B
secondary
#4D723C
accent
#D4547B
background
#F6F5F6
surface
#EBE8EC
border
#C6C4C7
text
#060307
muted
#7A787A

Preview Lab

Preview with #30173B

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

Preview Lab → · Contrast checker → · Palette generator →

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