#30174D#30174D

#30174D is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.096 H 301.6°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#30174D
RGBrgb(48, 23, 77)
HSLhsl(268, 54%, 20%)
HSVhsv(268, 70%, 30%)
CMYKcmyk(37.7%, 70.1%, 0%, 69.8%)
CIE-LABlab(14.27, 25.12, -28.73)
CIE-LCHlch(14.27, 38.17, 311.17°)
OKLaboklab(27.18% 0.0502 -0.0816)
OKLCHoklch(27.18% 0.096 301.6)
XYZxyz(2.8646, 1.7770, 7.2118)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30174D #344D17
analogous
#17194D #30174D #4B174D
triadic
#30174D #4D3017 #174D30
tetradic
#30174D #4D1719 #344D17 #174D4B
square
#30174D #4D1719 #344D17 #174D4B
split-complementary
#30174D #4D4B17 #194D17
monochromatic
#0F0718 #13091E #30174D #4D257C #6B33AB

Accessibility & contrast

On white

15.49
#30174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#30174D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30174D
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30174D#FFFFFF#000000##FFFFFF
##30174D1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244F
Deuteranopia (green-blind)
#04244C
Tritanopia (blue-blind)
#2A232F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #30174d;
/* rgb */ color: rgb(48, 23, 77);
/* oklch */ color: oklch(27.2% 0.096 301.6);
Tailwind
colors: {
  custom: {
    50: '#6b567f',
    500: '#30174d',
    950: '#000000',
  },
}
SCSS
$custom: #30174d;
$custom-light: #6b567f;
$custom-dark: #000000;
JSON
{
  "hex": "#30174d",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 267.778,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27183,
    "c": 0.09581,
    "h": 301.6
  },
  "luminance": 0.01777
}

Semantic roles & 50–950 ramp

primary
#30174D
secondary
#63843C
accent
#DD4A99
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #30174D

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

Preview Lab → · Contrast checker → · Palette generator →

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