#30196A#30196A

#30196A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.131 H 289.0°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#30196A
RGBrgb(48, 25, 106)
HSLhsl(257, 62%, 26%)
HSVhsv(257, 76%, 42%)
CMYKcmyk(54.7%, 76.4%, 0%, 58.4%)
CIE-LABlab(17.29, 32.81, -43.23)
CIE-LCHlch(17.29, 54.27, 307.19°)
OKLaboklab(30.15% 0.0427 -0.1242)
OKLCHoklch(30.15% 0.131 289)
XYZxyz(4.1673, 2.3641, 13.8696)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30196A #536A19
analogous
#192A6A #30196A #58196A
triadic
#30196A #6A3019 #196A30
tetradic
#30196A #6A192A #536A19 #196A58
square
#30196A #6A192A #536A19 #196A58
split-complementary
#30196A #6A5819 #2A6A19
monochromatic
#0B0619 #1A0D38 #30196A #46259C #5D30CD

Accessibility & contrast

On white

14.26
#30196A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#30196A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30196A
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30196A#FFFFFF#000000##FFFFFF
##30196A1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002868
Tritanopia (blue-blind)
#1A2F40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #30196a;
/* rgb */ color: rgb(48, 25, 106);
/* oklch */ color: oklch(30.2% 0.131 289.0);
Tailwind
colors: {
  custom: {
    50: '#6f5895',
    500: '#30196a',
    950: '#000000',
  },
}
SCSS
$custom: #30196a;
$custom-light: #6f5895;
$custom-dark: #000000;
JSON
{
  "hex": "#30196a",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 106
  },
  "hsl": {
    "h": 257.037,
    "s": 61.832,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30153,
    "c": 0.13136,
    "h": 289
  },
  "luminance": 0.02364
}

Semantic roles & 50–950 ramp

primary
#30196A
secondary
#84A03F
accent
#E543B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #30196A

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

Preview Lab → · Contrast checker → · Palette generator →

#30196A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva