#30176E#30176E

#30176E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.139 H 288.2°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#30176E
RGBrgb(48, 23, 110)
HSLhsl(257, 65%, 26%)
HSVhsv(257, 79%, 43%)
CMYKcmyk(56.4%, 79.1%, 0%, 56.9%)
CIE-LABlab(17.30, 35.14, -45.82)
CIE-LCHlch(17.30, 57.74, 307.49°)
OKLaboklab(30.28% 0.0434 -0.1318)
OKLCHoklch(30.28% 0.139 288.2)
XYZxyz(4.3390, 2.3667, 14.9770)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30176E #556E17
analogous
#17296E #30176E #5B176E
triadic
#30176E #6E3017 #176E30
tetradic
#30176E #6E1729 #556E17 #176E5B
square
#30176E #6E1729 #556E17 #176E5B
split-complementary
#30176E #6E5B17 #296E17
monochromatic
#0B0519 #1A0C3B #30176E #4622A1 #5C2CD3

Accessibility & contrast

On white

14.25
#30176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#30176E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30176E
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30176E#FFFFFF#000000##FFFFFF
##30176E1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#172F41
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #30176e;
/* rgb */ color: rgb(48, 23, 110);
/* oklch */ color: oklch(30.3% 0.139 288.2);
Tailwind
colors: {
  custom: {
    50: '#705798',
    500: '#30176e',
    950: '#000000',
  },
}
SCSS
$custom: #30176e;
$custom-light: #705798;
$custom-dark: #000000;
JSON
{
  "hex": "#30176e",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 257.241,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30284,
    "c": 0.13875,
    "h": 288.2
  },
  "luminance": 0.02367
}

Semantic roles & 50–950 ramp

primary
#30176E
secondary
#86A43D
accent
#E83FB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #30176E

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

Preview Lab → · Contrast checker → · Palette generator →

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