#30176B#30176B

#30176B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.135 H 289.2°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#30176B
RGBrgb(48, 23, 107)
HSLhsl(258, 65%, 25%)
HSVhsv(258, 79%, 42%)
CMYKcmyk(55.1%, 78.5%, 0%, 58%)
CIE-LABlab(17.00, 34.22, -44.36)
CIE-LCHlch(17.00, 56.03, 307.65°)
OKLaboklab(29.98% 0.0443 -0.1275)
OKLCHoklch(29.98% 0.135 289.2)
XYZxyz(4.1784, 2.3025, 14.1313)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30176B #526B17
analogous
#17286B #30176B #5A176B
triadic
#30176B #6B3017 #176B30
tetradic
#30176B #6B1728 #526B17 #176B5A
square
#30176B #6B1728 #526B17 #176B5A
split-complementary
#30176B #6B5A17 #286B17
monochromatic
#0B0519 #190C39 #30176B #47229D #5D2DD0

Accessibility & contrast

On white

14.38
#30176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#30176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30176B
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30176B#FFFFFF#000000##FFFFFF
##30176B1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6D
Deuteranopia (green-blind)
#002869
Tritanopia (blue-blind)
#1A2E40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #30176b;
/* rgb */ color: rgb(48, 23, 107);
/* oklch */ color: oklch(30.0% 0.135 289.2);
Tailwind
colors: {
  custom: {
    50: '#705796',
    500: '#30176b',
    950: '#000000',
  },
}
SCSS
$custom: #30176b;
$custom-light: #705796;
$custom-dark: #000000;
JSON
{
  "hex": "#30176b",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 257.857,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29978,
    "c": 0.13499,
    "h": 289.2
  },
  "luminance": 0.02303
}

Semantic roles & 50–950 ramp

primary
#30176B
secondary
#83A13D
accent
#E840B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #30176B

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

Preview Lab → · Contrast checker → · Palette generator →

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