#301D85#301D85

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

Color values

HEX#301D85
RGBrgb(48, 29, 133)
HSLhsl(251, 64%, 32%)
HSVhsv(251, 78%, 52%)
CMYKcmyk(63.9%, 78.2%, 0%, 47.8%)
CIE-LABlab(20.83, 39.13, -54.73)
CIE-LCHlch(20.83, 67.28, 305.56°)
OKLaboklab(33.48% 0.0324 -0.1579)
OKLCHoklch(33.48% 0.161 281.6)
XYZxyz(5.8906, 3.2001, 22.4930)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D85 #72851D
analogous
#1D3E85 #301D85 #641D85
triadic
#301D85 #85301D #1D8530
tetradic
#301D85 #851D3E #72851D #1D8564
square
#301D85 #851D3E #72851D #1D8564
split-complementary
#301D85 #85641D #3E851D
monochromatic
#0C0721 #1E1253 #301D85 #4228B7 #6046D7

Accessibility & contrast

On white

12.80
#301D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#301D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D85
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D85#FFFFFF#000000##FFFFFF
##301D851.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #301d85;
/* rgb */ color: rgb(48, 29, 133);
/* oklch */ color: oklch(33.5% 0.161 281.6);
Tailwind
colors: {
  custom: {
    50: '#745caa',
    500: '#301d85',
    950: '#000000',
  },
}
SCSS
$custom: #301d85;
$custom-light: #745caa;
$custom-dark: #000000;
JSON
{
  "hex": "#301d85",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 133
  },
  "hsl": {
    "h": 250.962,
    "s": 64.198,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33481,
    "c": 0.16118,
    "h": 281.6
  },
  "luminance": 0.03201
}

Semantic roles & 50–950 ramp

primary
#301D85
secondary
#A3B846
accent
#E741C9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301D85

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

Preview Lab → · Contrast checker → · Palette generator →

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