#301A9E#301A9E

#301A9E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.194 H 277.9°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#301A9E
RGBrgb(48, 26, 158)
HSLhsl(250, 72%, 36%)
HSVhsv(250, 84%, 62%)
CMYKcmyk(69.6%, 83.5%, 0%, 38%)
CIE-LABlab(23.12, 48.27, -66.45)
CIE-LCHlch(23.12, 82.14, 306.00°)
OKLaboklab(35.9% 0.0266 -0.192)
OKLCHoklch(35.9% 0.194 277.9)
XYZxyz(7.7579, 3.8351, 32.6725)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A9E #889E1A
analogous
#1A469E #301A9E #721A9E
triadic
#301A9E #9E301A #1A9E30
tetradic
#301A9E #9E1A46 #889E1A #1A9E72
square
#301A9E #9E1A46 #889E1A #1A9E72
split-complementary
#301A9E #9E721A #469E1A
monochromatic
#100935 #201169 #301A9E #4023D3 #6950E2

Accessibility & contrast

On white

11.88
#301A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#301A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A9E
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A9E#FFFFFF#000000##FFFFFF
##301A9E1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #301a9e;
/* rgb */ color: rgb(48, 26, 158);
/* oklch */ color: oklch(35.9% 0.194 277.9);
Tailwind
colors: {
  custom: {
    50: '#7a5cbc',
    500: '#301a9e',
    950: '#000000',
  },
}
SCSS
$custom: #301a9e;
$custom-light: #7a5cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#301a9e",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 250,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35899,
    "c": 0.19379,
    "h": 277.9
  },
  "luminance": 0.03836
}

Semantic roles & 50–950 ramp

primary
#301A9E
secondary
#B1C54F
accent
#EE39D0
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #301A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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