#301C93#301C93

#301C93 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.179 H 279.3°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#301C93
RGBrgb(48, 28, 147)
HSLhsl(250, 68%, 34%)
HSVhsv(250, 81%, 58%)
CMYKcmyk(67.3%, 81%, 0%, 42.4%)
CIE-LABlab(22.18, 44.01, -61.24)
CIE-LCHlch(22.18, 75.42, 305.70°)
OKLaboklab(34.88% 0.029 -0.1768)
OKLCHoklch(34.88% 0.179 279.3)
XYZxyz(6.8990, 3.5649, 27.9226)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C93 #7F931C
analogous
#1C4493 #301C93 #6C1C93
triadic
#301C93 #93301C #1C9330
tetradic
#301C93 #931C44 #7F931C #1C936C
square
#301C93 #931C44 #7F931C #1C936C
split-complementary
#301C93 #936C1C #44931C
monochromatic
#0E082C #1F1260 #301C93 #4126C6 #654CDD

Accessibility & contrast

On white

12.26
#301C93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#301C93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C93
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C93#FFFFFF#000000##FFFFFF
##301C931.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003996
Deuteranopia (green-blind)
#003091
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #301c93;
/* rgb */ color: rgb(48, 28, 147);
/* oklch */ color: oklch(34.9% 0.179 279.3);
Tailwind
colors: {
  custom: {
    50: '#775cb4',
    500: '#301c93',
    950: '#000000',
  },
}
SCSS
$custom: #301c93;
$custom-light: #775cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#301c93",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 147
  },
  "hsl": {
    "h": 250.084,
    "s": 68,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34878,
    "c": 0.17922,
    "h": 279.3
  },
  "luminance": 0.03565
}

Semantic roles & 50–950 ramp

primary
#301C93
secondary
#ACBF4C
accent
#EB3DCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301C93

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

Preview Lab → · Contrast checker → · Palette generator →

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