#301794#301794

#301794 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.184 H 279.7°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#301794
RGBrgb(48, 23, 148)
HSLhsl(252, 73%, 34%)
HSVhsv(252, 84%, 58%)
CMYKcmyk(67.6%, 84.5%, 0%, 42%)
CIE-LABlab(21.50, 46.63, -62.98)
CIE-LCHlch(21.50, 78.36, 306.51°)
OKLaboklab(34.44% 0.0311 -0.1818)
OKLCHoklch(34.44% 0.184 279.7)
XYZxyz(6.8689, 3.3787, 28.3014)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301794 #7B9417
analogous
#173C94 #301794 #6E1794
triadic
#301794 #943017 #179430
tetradic
#301794 #94173C #7B9417 #17946E
square
#301794 #94173C #7B9417 #17946E
split-complementary
#301794 #946E17 #3C9417
monochromatic
#0E072A #1F0F5F #301794 #411FC9 #6344E2

Accessibility & contrast

On white

12.53
#301794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#301794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301794
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301794#FFFFFF#000000##FFFFFF
##3017941.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003897
Deuteranopia (green-blind)
#002F92
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301794;
/* rgb */ color: rgb(48, 23, 148);
/* oklch */ color: oklch(34.4% 0.184 279.7);
Tailwind
colors: {
  custom: {
    50: '#785ab5',
    500: '#301794',
    950: '#000000',
  },
}
SCSS
$custom: #301794;
$custom-light: #785ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#301794",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 252,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34444,
    "c": 0.18447,
    "h": 279.7
  },
  "luminance": 0.03379
}

Semantic roles & 50–950 ramp

primary
#301794
secondary
#A9C344
accent
#F038CB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301794

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

Preview Lab → · Contrast checker → · Palette generator →

#301794 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva