#30177B#30177B

#30177B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.155 H 284.8°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#30177B
RGBrgb(48, 23, 123)
HSLhsl(255, 68%, 29%)
HSVhsv(255, 81%, 48%)
CMYKcmyk(61%, 81.3%, 0%, 51.8%)
CIE-LABlab(18.67, 39.12, -51.94)
CIE-LCHlch(18.67, 65.03, 306.99°)
OKLaboklab(31.66% 0.0395 -0.1497)
OKLCHoklch(31.66% 0.155 284.8)
XYZxyz(5.0994, 2.6709, 18.9819)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30177B #627B17
analogous
#17307B #30177B #62177B
triadic
#30177B #7B3017 #177B30
tetradic
#30177B #7B1730 #627B17 #177B62
square
#30177B #7B1730 #627B17 #177B62
split-complementary
#30177B #7B6217 #307B17
monochromatic
#0A051A #1C0D47 #30177B #4421AF #5D33D9

Accessibility & contrast

On white

13.69
#30177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30177B
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30177B#FFFFFF#000000##FFFFFF
##30177B1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#033449
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #30177b;
/* rgb */ color: rgb(48, 23, 123);
/* oklch */ color: oklch(31.7% 0.155 284.8);
Tailwind
colors: {
  custom: {
    50: '#7358a2',
    500: '#30177b',
    950: '#000000',
  },
}
SCSS
$custom: #30177b;
$custom-light: #7358a2;
$custom-dark: #000000;
JSON
{
  "hex": "#30177b",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 255,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31655,
    "c": 0.15479,
    "h": 284.8
  },
  "luminance": 0.02671
}

Semantic roles & 50–950 ramp

primary
#30177B
secondary
#93B03E
accent
#EB3CC0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30177B

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

Preview Lab → · Contrast checker → · Palette generator →

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