#301C94#301C94

#301C94 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.180 H 279.2°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#301C94
RGBrgb(48, 28, 148)
HSLhsl(250, 68%, 35%)
HSVhsv(250, 81%, 58%)
CMYKcmyk(67.6%, 81.1%, 0%, 42%)
CIE-LABlab(22.29, 44.32, -61.68)
CIE-LCHlch(22.29, 75.95, 305.70°)
OKLaboklab(34.99% 0.0287 -0.1781)
OKLCHoklch(34.99% 0.18 279.2)
XYZxyz(6.9778, 3.5964, 28.3377)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C94 #80941C
analogous
#1C4494 #301C94 #6C1C94
triadic
#301C94 #94301C #1C9430
tetradic
#301C94 #941C44 #80941C #1C946C
square
#301C94 #941C44 #80941C #1C946C
split-complementary
#301C94 #946C1C #44941C
monochromatic
#0F092D #1F1261 #301C94 #4126C7 #654DDD

Accessibility & contrast

On white

12.21
#301C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#301C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C94
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C94#FFFFFF#000000##FFFFFF
##301C941.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003092
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #301c94;
/* rgb */ color: rgb(48, 28, 148);
/* oklch */ color: oklch(35.0% 0.180 279.2);
Tailwind
colors: {
  custom: {
    50: '#785cb5',
    500: '#301c94',
    950: '#000000',
  },
}
SCSS
$custom: #301c94;
$custom-light: #785cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#301c94",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 148
  },
  "hsl": {
    "h": 250,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34989,
    "c": 0.18041,
    "h": 279.2
  },
  "luminance": 0.03597
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #301C94

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

Preview Lab → · Contrast checker → · Palette generator →

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