#30174F#30174F

#30174F is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.099 H 300.5°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#30174F
RGBrgb(48, 23, 79)
HSLhsl(267, 55%, 20%)
HSVhsv(267, 71%, 31%)
CMYKcmyk(39.2%, 70.9%, 0%, 69%)
CIE-LABlab(14.43, 25.71, -29.84)
CIE-LCHlch(14.43, 39.39, 310.75°)
OKLaboklab(27.35% 0.05 -0.0849)
OKLCHoklch(27.35% 0.099 300.5)
XYZxyz(2.9363, 1.8057, 7.5895)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30174F #364F17
analogous
#171A4F #30174F #4C174F
triadic
#30174F #4F3017 #174F30
tetradic
#30174F #4F171A #364F17 #174F4C
square
#30174F #4F171A #364F17 #174F4C
split-complementary
#30174F #4F4C17 #1A4F17
monochromatic
#0E0718 #130920 #30174F #4D257E #6A33AE

Accessibility & contrast

On white

15.43
#30174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30174F
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30174F#FFFFFF#000000##FFFFFF
##30174F1.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#01244E
Tritanopia (blue-blind)
#292330
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #30174f;
/* rgb */ color: rgb(48, 23, 79);
/* oklch */ color: oklch(27.4% 0.099 300.5);
Tailwind
colors: {
  custom: {
    50: '#6b5681',
    500: '#30174f',
    950: '#000000',
  },
}
SCSS
$custom: #30174f;
$custom-light: #6b5681;
$custom-dark: #000000;
JSON
{
  "hex": "#30174f",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 266.786,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.27351,
    "c": 0.0985,
    "h": 300.5
  },
  "luminance": 0.01806
}

Semantic roles & 50–950 ramp

primary
#30174F
secondary
#65863C
accent
#DE4A9C
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #30174F

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

Preview Lab → · Contrast checker → · Palette generator →

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