#30174C#30174C

#30174C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.1% C 0.094 H 302.2°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#30174C
RGBrgb(48, 23, 76)
HSLhsl(268, 54%, 19%)
HSVhsv(268, 70%, 30%)
CMYKcmyk(36.8%, 69.7%, 0%, 70.2%)
CIE-LABlab(14.19, 24.83, -28.17)
CIE-LCHlch(14.19, 37.55, 311.39°)
OKLaboklab(27.1% 0.0503 -0.0799)
OKLCHoklch(27.1% 0.094 302.2)
XYZxyz(2.8295, 1.7630, 7.0273)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30174C #334C17
analogous
#17194C #30174C #4B174C
triadic
#30174C #4C3017 #174C30
tetradic
#30174C #4C1719 #334C17 #174C4B
square
#30174C #4C1719 #334C17 #174C4B
split-complementary
#30174C #4C4B17 #194C17
monochromatic
#0F0717 #12091D #30174C #4E257B #6B33AA

Accessibility & contrast

On white

15.53
#30174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#30174C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30174C
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30174C#FFFFFF#000000##FFFFFF
##30174C1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244E
Deuteranopia (green-blind)
#06244B
Tritanopia (blue-blind)
#2A222F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #30174c;
/* rgb */ color: rgb(48, 23, 76);
/* oklch */ color: oklch(27.1% 0.094 302.2);
Tailwind
colors: {
  custom: {
    50: '#6b557e',
    500: '#30174c',
    950: '#000000',
  },
}
SCSS
$custom: #30174c;
$custom-light: #6b557e;
$custom-dark: #000000;
JSON
{
  "hex": "#30174c",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 268.302,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.271,
    "c": 0.09445,
    "h": 302.2
  },
  "luminance": 0.01763
}

Semantic roles & 50–950 ramp

primary
#30174C
secondary
#61833C
accent
#DD4B98
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #30174C

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

Preview Lab → · Contrast checker → · Palette generator →

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