#30173D#30173D

#30173D is a dark, moderate violet. Relative luminance 0.016; OKLCH L 25.9% C 0.074 H 312.7°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#30173D
RGBrgb(48, 23, 61)
HSLhsl(279, 45%, 16%)
HSVhsv(279, 62%, 24%)
CMYKcmyk(21.3%, 62.3%, 0%, 76.1%)
CIE-LABlab(13.10, 20.61, -19.46)
CIE-LCHlch(13.10, 28.34, 316.64°)
OKLaboklab(25.95% 0.0503 -0.0544)
OKLCHoklch(25.95% 0.074 312.7)
XYZxyz(2.3675, 1.5782, 4.5939)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30173D #243D17
analogous
#1D173D #30173D #3D1737
triadic
#30173D #3D3017 #173D30
tetradic
#30173D #3D1D17 #243D17 #17373D
square
#30173D #3D1D17 #243D17 #17373D
split-complementary
#30173D #373D17 #173D1D
monochromatic
#110816 #110816 #30173D #532869 #763996

Accessibility & contrast

On white

15.96
#30173D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#30173D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30173D
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30173D#FFFFFF#000000##FFFFFF
##30173D1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D203E
Deuteranopia (green-blind)
#15223C
Tritanopia (blue-blind)
#2F1D27
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #30173d;
/* rgb */ color: rgb(48, 23, 61);
/* oklch */ color: oklch(25.9% 0.074 312.7);
Tailwind
colors: {
  custom: {
    50: '#6a5572',
    500: '#30173d',
    950: '#000000',
  },
}
SCSS
$custom: #30173d;
$custom-light: #6a5572;
$custom-dark: #000000;
JSON
{
  "hex": "#30173d",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 61
  },
  "hsl": {
    "h": 279.474,
    "s": 45.238,
    "l": 16.471
  },
  "oklch": {
    "l": 0.2595,
    "c": 0.0741,
    "h": 312.7
  },
  "luminance": 0.01578
}

Semantic roles & 50–950 ramp

primary
#30173D
secondary
#4F743C
accent
#D5537F
background
#F6F5F6
surface
#EBE8EC
border
#C6C4C7
text
#060308
muted
#7A787B

Preview Lab

Preview with #30173D

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

Preview Lab → · Contrast checker → · Palette generator →

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