#301A99#301A99

#301A99 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.188 H 278.6°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#301A99
RGBrgb(48, 26, 153)
HSLhsl(250, 71%, 35%)
HSVhsv(250, 83%, 60%)
CMYKcmyk(68.6%, 83%, 0%, 40%)
CIE-LABlab(22.54, 46.78, -64.35)
CIE-LCHlch(22.54, 79.56, 306.02°)
OKLaboklab(35.33% 0.0281 -0.1858)
OKLCHoklch(35.33% 0.188 278.6)
XYZxyz(7.3362, 3.6664, 30.4519)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A99 #83991A
analogous
#1A4399 #301A99 #701A99
triadic
#301A99 #99301A #1A9930
tetradic
#301A99 #991A43 #83991A #1A9970
square
#301A99 #991A43 #83991A #1A9970
split-complementary
#301A99 #99701A #43991A
monochromatic
#0F0830 #201165 #301A99 #4023CD #664DE1

Accessibility & contrast

On white

12.11
#301A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#301A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A99
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A99#FFFFFF#000000##FFFFFF
##301A991.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #301a99;
/* rgb */ color: rgb(48, 26, 153);
/* oklch */ color: oklch(35.3% 0.188 278.6);
Tailwind
colors: {
  custom: {
    50: '#795cb8',
    500: '#301a99',
    950: '#000000',
  },
}
SCSS
$custom: #301a99;
$custom-light: #795cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#301a99",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 153
  },
  "hsl": {
    "h": 250.394,
    "s": 70.95,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35327,
    "c": 0.18797,
    "h": 278.6
  },
  "luminance": 0.03667
}

Semantic roles & 50–950 ramp

primary
#301A99
secondary
#AEC34C
accent
#EE3ACF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #301A99

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

Preview Lab → · Contrast checker → · Palette generator →

#301A99 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva