#30177A#30177A

#30177A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.154 H 285.0°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#30177A
RGBrgb(48, 23, 122)
HSLhsl(255, 68%, 28%)
HSVhsv(255, 81%, 48%)
CMYKcmyk(60.7%, 81.1%, 0%, 52.2%)
CIE-LABlab(18.57, 38.82, -51.48)
CIE-LCHlch(18.57, 64.48, 307.02°)
OKLaboklab(31.55% 0.0398 -0.1483)
OKLCHoklch(31.55% 0.154 285)
XYZxyz(5.0371, 2.6460, 18.6539)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30177A #617A17
analogous
#172F7A #30177A #61177A
triadic
#30177A #7A3017 #177A30
tetradic
#30177A #7A172F #617A17 #177A61
square
#30177A #7A172F #617A17 #177A61
split-complementary
#30177A #7A6117 #2F7A17
monochromatic
#0A051A #1C0D47 #30177A #4421AD #5D33D9

Accessibility & contrast

On white

13.73
#30177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#30177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30177A
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30177A#FFFFFF#000000##FFFFFF
##30177A1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#053448
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #30177a;
/* rgb */ color: rgb(48, 23, 122);
/* oklch */ color: oklch(31.5% 0.154 285.0);
Tailwind
colors: {
  custom: {
    50: '#7258a1',
    500: '#30177a',
    950: '#000000',
  },
}
SCSS
$custom: #30177a;
$custom-light: #7258a1;
$custom-dark: #000000;
JSON
{
  "hex": "#30177a",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 255.152,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31547,
    "c": 0.15357,
    "h": 285
  },
  "luminance": 0.02646
}

Semantic roles & 50–950 ramp

primary
#30177A
secondary
#92AF3E
accent
#EB3DBF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30177A

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

Preview Lab → · Contrast checker → · Palette generator →

#30177A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva