#301A89#301A89

#301A89 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.169 H 281.3°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#301A89
RGBrgb(48, 26, 137)
HSLhsl(252, 68%, 32%)
HSVhsv(252, 81%, 54%)
CMYKcmyk(65%, 81%, 0%, 46.3%)
CIE-LABlab(20.72, 41.92, -57.42)
CIE-LCHlch(20.72, 71.09, 306.13°)
OKLaboklab(33.54% 0.0332 -0.1657)
OKLCHoklch(33.54% 0.169 281.3)
XYZxyz(6.1023, 3.1729, 23.9529)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A89 #73891A
analogous
#1A3C89 #301A89 #681A89
triadic
#301A89 #89301A #1A8930
tetradic
#301A89 #891A3C #73891A #1A8968
square
#301A89 #891A3C #73891A #1A8968
split-complementary
#301A89 #89681A #3C891A
monochromatic
#0C0622 #1E1056 #301A89 #4224BC #6142DB

Accessibility & contrast

On white

12.85
#301A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#301A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A89
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A89#FFFFFF#000000##FFFFFF
##301A891.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002E87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #301a89;
/* rgb */ color: rgb(48, 26, 137);
/* oklch */ color: oklch(33.5% 0.169 281.3);
Tailwind
colors: {
  custom: {
    50: '#755aad',
    500: '#301a89',
    950: '#000000',
  },
}
SCSS
$custom: #301a89;
$custom-light: #755aad;
$custom-dark: #000000;
JSON
{
  "hex": "#301a89",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 251.892,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33537,
    "c": 0.16897,
    "h": 281.3
  },
  "luminance": 0.03173
}

Semantic roles & 50–950 ramp

primary
#301A89
secondary
#A4BC43
accent
#EB3DC8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #301A89

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

Preview Lab → · Contrast checker → · Palette generator →

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