#30177C#30177C

#30177C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.156 H 284.5°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#30177C
RGBrgb(48, 23, 124)
HSLhsl(255, 69%, 29%)
HSVhsv(255, 81%, 49%)
CMYKcmyk(61.3%, 81.5%, 0%, 51.4%)
CIE-LABlab(18.78, 39.42, -52.40)
CIE-LCHlch(18.78, 65.58, 306.96°)
OKLaboklab(31.76% 0.0391 -0.151)
OKLCHoklch(31.76% 0.156 284.5)
XYZxyz(5.1623, 2.6961, 19.3132)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30177C #637C17
analogous
#17317C #30177C #63177C
triadic
#30177C #7C3017 #177C30
tetradic
#30177C #7C1731 #637C17 #177C63
square
#30177C #7C1731 #637C17 #177C63
split-complementary
#30177C #7C6317 #317C17
monochromatic
#0A051A #1C0D48 #30177C #4421B0 #5D34D9

Accessibility & contrast

On white

13.64
#30177C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#30177C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30177C
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30177C#FFFFFF#000000##FFFFFF
##30177C1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#013549
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #30177c;
/* rgb */ color: rgb(48, 23, 124);
/* oklch */ color: oklch(31.8% 0.156 284.5);
Tailwind
colors: {
  custom: {
    50: '#7358a3',
    500: '#30177c',
    950: '#000000',
  },
}
SCSS
$custom: #30177c;
$custom-light: #7358a3;
$custom-dark: #000000;
JSON
{
  "hex": "#30177c",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 124
  },
  "hsl": {
    "h": 254.851,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31763,
    "c": 0.15601,
    "h": 284.5
  },
  "luminance": 0.02696
}

Semantic roles & 50–950 ramp

primary
#30177C
secondary
#94B13E
accent
#EC3CC0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30177C

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

Preview Lab → · Contrast checker → · Palette generator →

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