#30196E#30196E

#30196E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.136 H 287.8°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#30196E
RGBrgb(48, 25, 110)
HSLhsl(256, 63%, 26%)
HSVhsv(256, 77%, 43%)
CMYKcmyk(56.4%, 77.3%, 0%, 56.9%)
CIE-LABlab(17.69, 34.06, -45.19)
CIE-LCHlch(17.69, 56.59, 307.00°)
OKLaboklab(30.55% 0.0417 -0.1299)
OKLCHoklch(30.55% 0.136 287.8)
XYZxyz(4.3802, 2.4492, 14.9908)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30196E #576E19
analogous
#192D6E #30196E #5B196E
triadic
#30196E #6E3019 #196E30
tetradic
#30196E #6E192D #576E19 #196E5B
square
#30196E #6E192D #576E19 #196E5B
split-complementary
#30196E #6E5B19 #2D6E19
monochromatic
#0B0619 #1A0E3C #30196E #4624A0 #5C31D0

Accessibility & contrast

On white

14.10
#30196E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30196E
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30196E#FFFFFF#000000##FFFFFF
##30196E1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00296C
Tritanopia (blue-blind)
#173042
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #30196e;
/* rgb */ color: rgb(48, 25, 110);
/* oklch */ color: oklch(30.6% 0.136 287.8);
Tailwind
colors: {
  custom: {
    50: '#705898',
    500: '#30196e',
    950: '#000000',
  },
}
SCSS
$custom: #30196e;
$custom-light: #705898;
$custom-dark: #000000;
JSON
{
  "hex": "#30196e",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 110
  },
  "hsl": {
    "h": 256.235,
    "s": 62.963,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30553,
    "c": 0.13649,
    "h": 287.8
  },
  "luminance": 0.02449
}

Semantic roles & 50–950 ramp

primary
#30196E
secondary
#88A33F
accent
#E642BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #30196E

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

Preview Lab → · Contrast checker → · Palette generator →

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