#301A97#301A97

#301A97 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.186 H 278.9°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#301A97
RGBrgb(48, 26, 151)
HSLhsl(251, 71%, 35%)
HSVhsv(251, 83%, 59%)
CMYKcmyk(68.2%, 82.8%, 0%, 40.8%)
CIE-LABlab(22.31, 46.18, -63.50)
CIE-LCHlch(22.31, 78.52, 306.03°)
OKLaboklab(35.1% 0.0288 -0.1834)
OKLCHoklch(35.1% 0.186 278.9)
XYZxyz(7.1724, 3.6009, 29.5892)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A97 #81971A
analogous
#1A4397 #301A97 #6F1A97
triadic
#301A97 #97301A #1A9730
tetradic
#301A97 #971A43 #81971A #1A976F
square
#301A97 #971A43 #81971A #1A976F
split-complementary
#301A97 #976F1A #43971A
monochromatic
#0F082F #1F1163 #301A97 #4123CB #664BE0

Accessibility & contrast

On white

12.21
#301A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#301A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A97
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A97#FFFFFF#000000##FFFFFF
##301A971.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#003095
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #301a97;
/* rgb */ color: rgb(48, 26, 151);
/* oklch */ color: oklch(35.1% 0.186 278.9);
Tailwind
colors: {
  custom: {
    50: '#785bb7',
    500: '#301a97',
    950: '#000000',
  },
}
SCSS
$custom: #301a97;
$custom-light: #785bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#301a97",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 250.56,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.351,
    "c": 0.18563,
    "h": 278.9
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#301A97
secondary
#ADC24B
accent
#ED3ACE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301A97

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

Preview Lab → · Contrast checker → · Palette generator →

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