#301D89#301D89

#301D89 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.166 H 280.9°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#301D89
RGBrgb(48, 29, 137)
HSLhsl(251, 65%, 33%)
HSVhsv(251, 79%, 54%)
CMYKcmyk(65%, 78.8%, 0%, 46.3%)
CIE-LABlab(21.26, 40.39, -56.54)
CIE-LCHlch(21.26, 69.48, 305.54°)
OKLaboklab(33.91% 0.0313 -0.1632)
OKLCHoklch(33.91% 0.166 280.9)
XYZxyz(6.1722, 3.3128, 23.9762)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D89 #76891D
analogous
#1D4089 #301D89 #661D89
triadic
#301D89 #89301D #1D8930
tetradic
#301D89 #891D40 #76891D #1D8966
square
#301D89 #891D40 #76891D #1D8966
split-complementary
#301D89 #89661D #40891D
monochromatic
#0D0824 #1E1256 #301D89 #4228BC #6148D8

Accessibility & contrast

On white

12.63
#301D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#301D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D89
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D89#FFFFFF#000000##FFFFFF
##301D891.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#002F87
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #301d89;
/* rgb */ color: rgb(48, 29, 137);
/* oklch */ color: oklch(33.9% 0.166 280.9);
Tailwind
colors: {
  custom: {
    50: '#755cad',
    500: '#301d89',
    950: '#000000',
  },
}
SCSS
$custom: #301d89;
$custom-light: #755cad;
$custom-dark: #000000;
JSON
{
  "hex": "#301d89",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 250.556,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33909,
    "c": 0.16614,
    "h": 280.9
  },
  "luminance": 0.03313
}

Semantic roles & 50–950 ramp

primary
#301D89
secondary
#A6BA47
accent
#E840CA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301D89

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

Preview Lab → · Contrast checker → · Palette generator →

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