#301996#301996

#301996 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.185 H 279.2°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#301996
RGBrgb(48, 25, 150)
HSLhsl(251, 71%, 34%)
HSVhsv(251, 83%, 59%)
CMYKcmyk(68%, 83.3%, 0%, 41.2%)
CIE-LABlab(22.03, 46.33, -63.33)
CIE-LCHlch(22.03, 78.47, 306.19°)
OKLaboklab(34.88% 0.0295 -0.1829)
OKLCHoklch(34.88% 0.185 279.2)
XYZxyz(7.0698, 3.5251, 29.1561)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301996 #7F9619
analogous
#194196 #301996 #6F1996
triadic
#301996 #963019 #199630
tetradic
#301996 #961941 #7F9619 #19966F
square
#301996 #961941 #7F9619 #19966F
split-complementary
#301996 #966F19 #419619
monochromatic
#0E082D #1F1062 #301996 #4122CA #6549E1

Accessibility & contrast

On white

12.32
#301996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#301996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301996
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301996#FFFFFF#000000##FFFFFF
##3019961.0012.321.7112.32
#FFFFFF12.321.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003999
Deuteranopia (green-blind)
#003094
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #301996;
/* rgb */ color: rgb(48, 25, 150);
/* oklch */ color: oklch(34.9% 0.185 279.2);
Tailwind
colors: {
  custom: {
    50: '#785bb6',
    500: '#301996',
    950: '#000000',
  },
}
SCSS
$custom: #301996;
$custom-light: #785bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#301996",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 251.04,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3488,
    "c": 0.18525,
    "h": 279.2
  },
  "luminance": 0.03526
}

Semantic roles & 50–950 ramp

primary
#301996
secondary
#ACC249
accent
#EE3ACD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301996

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

Preview Lab → · Contrast checker → · Palette generator →

#301996 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva