#30196D#30196D

#30196D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.135 H 288.1°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#30196D
RGBrgb(48, 25, 109)
HSLhsl(256, 63%, 26%)
HSVhsv(256, 77%, 43%)
CMYKcmyk(56%, 77.1%, 0%, 57.3%)
CIE-LABlab(17.59, 33.75, -44.70)
CIE-LCHlch(17.59, 56.01, 307.05°)
OKLaboklab(30.45% 0.042 -0.1285)
OKLCHoklch(30.45% 0.135 288.1)
XYZxyz(4.3261, 2.4276, 14.7056)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30196D #566D19
analogous
#192C6D #30196D #5A196D
triadic
#30196D #6D3019 #196D30
tetradic
#30196D #6D192C #566D19 #196D5A
square
#30196D #6D192C #566D19 #196D5A
split-complementary
#30196D #6D5A19 #2C6D19
monochromatic
#0B0619 #1A0E3B #30196D #46249F #5C31D0

Accessibility & contrast

On white

14.14
#30196D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#30196D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30196D
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30196D#FFFFFF#000000##FFFFFF
##30196D1.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#00296B
Tritanopia (blue-blind)
#183041
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #30196d;
/* rgb */ color: rgb(48, 25, 109);
/* oklch */ color: oklch(30.5% 0.135 288.1);
Tailwind
colors: {
  custom: {
    50: '#705898',
    500: '#30196d',
    950: '#000000',
  },
}
SCSS
$custom: #30196d;
$custom-light: #705898;
$custom-dark: #000000;
JSON
{
  "hex": "#30196d",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 109
  },
  "hsl": {
    "h": 256.429,
    "s": 62.687,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30453,
    "c": 0.13521,
    "h": 288.1
  },
  "luminance": 0.02428
}

Semantic roles & 50–950 ramp

primary
#30196D
secondary
#87A23F
accent
#E642B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #30196D

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

Preview Lab → · Contrast checker → · Palette generator →

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