#30177D#30177D

#30177D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.157 H 284.3°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#30177D
RGBrgb(48, 23, 125)
HSLhsl(255, 69%, 29%)
HSVhsv(255, 82%, 49%)
CMYKcmyk(61.6%, 81.6%, 0%, 51%)
CIE-LABlab(18.89, 39.73, -52.86)
CIE-LCHlch(18.89, 66.13, 306.93°)
OKLaboklab(31.87% 0.0388 -0.1524)
OKLCHoklch(31.87% 0.157 284.3)
XYZxyz(5.2259, 2.7215, 19.6480)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30177D #647D17
analogous
#17317D #30177D #63177D
triadic
#30177D #7D3017 #177D30
tetradic
#30177D #7D1731 #647D17 #177D63
square
#30177D #7D1731 #647D17 #177D63
split-complementary
#30177D #7D6317 #317D17
monochromatic
#0A051A #1C0D49 #30177D #4421B1 #5D35DA

Accessibility & contrast

On white

13.60
#30177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30177D
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30177D#FFFFFF#000000##FFFFFF
##30177D1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #30177d;
/* rgb */ color: rgb(48, 23, 125);
/* oklch */ color: oklch(31.9% 0.157 284.3);
Tailwind
colors: {
  custom: {
    50: '#7358a4',
    500: '#30177d',
    950: '#000000',
  },
}
SCSS
$custom: #30177d;
$custom-light: #7358a4;
$custom-dark: #000000;
JSON
{
  "hex": "#30177d",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 254.706,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31871,
    "c": 0.15722,
    "h": 284.3
  },
  "luminance": 0.02722
}

Semantic roles & 50–950 ramp

primary
#30177D
secondary
#95B23E
accent
#EC3CC1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30177D

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

Preview Lab → · Contrast checker → · Palette generator →

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