#30196B#30196B

#30196B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.133 H 288.7°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#30196B
RGBrgb(48, 25, 107)
HSLhsl(257, 62%, 26%)
HSVhsv(257, 77%, 42%)
CMYKcmyk(55.1%, 76.6%, 0%, 58%)
CIE-LABlab(17.39, 33.12, -43.72)
CIE-LCHlch(17.39, 54.85, 307.14°)
OKLaboklab(30.25% 0.0425 -0.1257)
OKLCHoklch(30.25% 0.133 288.7)
XYZxyz(4.2196, 2.3850, 14.1451)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30196B #546B19
analogous
#192B6B #30196B #59196B
triadic
#30196B #6B3019 #196B30
tetradic
#30196B #6B192B #546B19 #196B59
square
#30196B #6B192B #546B19 #196B59
split-complementary
#30196B #6B5919 #2B6B19
monochromatic
#0B0619 #1A0D39 #30196B #46259D #5D30CE

Accessibility & contrast

On white

14.22
#30196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#30196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30196B
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30196B#FFFFFF#000000##FFFFFF
##30196B1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6D
Deuteranopia (green-blind)
#002969
Tritanopia (blue-blind)
#1A2F40
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #30196b;
/* rgb */ color: rgb(48, 25, 107);
/* oklch */ color: oklch(30.3% 0.133 288.7);
Tailwind
colors: {
  custom: {
    50: '#6f5896',
    500: '#30196b',
    950: '#000000',
  },
}
SCSS
$custom: #30196b;
$custom-light: #6f5896;
$custom-dark: #000000;
JSON
{
  "hex": "#30196b",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 256.829,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30253,
    "c": 0.13264,
    "h": 288.7
  },
  "luminance": 0.02385
}

Semantic roles & 50–950 ramp

primary
#30196B
secondary
#85A13F
accent
#E543B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #30196B

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

Preview Lab → · Contrast checker → · Palette generator →

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