#30196F#30196F

#30196F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.138 H 287.5°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#30196F
RGBrgb(48, 25, 111)
HSLhsl(256, 63%, 27%)
HSVhsv(256, 77%, 44%)
CMYKcmyk(56.8%, 77.5%, 0%, 56.5%)
CIE-LABlab(17.79, 34.37, -45.68)
CIE-LCHlch(17.79, 57.16, 306.96°)
OKLaboklab(30.65% 0.0415 -0.1314)
OKLCHoklch(30.65% 0.138 287.5)
XYZxyz(4.4349, 2.4711, 15.2791)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30196F #586F19
analogous
#192D6F #30196F #5B196F
triadic
#30196F #6F3019 #196F30
tetradic
#30196F #6F192D #586F19 #196F5B
square
#30196F #6F192D #586F19 #196F5B
split-complementary
#30196F #6F5B19 #2D6F19
monochromatic
#0B0619 #1A0E3D #30196F #4624A1 #5C32D1

Accessibility & contrast

On white

14.05
#30196F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30196F
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30196F#FFFFFF#000000##FFFFFF
##30196F1.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#163142
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #30196f;
/* rgb */ color: rgb(48, 25, 111);
/* oklch */ color: oklch(30.7% 0.138 287.5);
Tailwind
colors: {
  custom: {
    50: '#705899',
    500: '#30196f',
    950: '#000000',
  },
}
SCSS
$custom: #30196f;
$custom-light: #705899;
$custom-dark: #000000;
JSON
{
  "hex": "#30196f",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 111
  },
  "hsl": {
    "h": 256.047,
    "s": 63.235,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30655,
    "c": 0.13776,
    "h": 287.5
  },
  "luminance": 0.02471
}

Semantic roles & 50–950 ramp

primary
#30196F
secondary
#89A43F
accent
#E642BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #30196F

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

Preview Lab → · Contrast checker → · Palette generator →

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