#301994#301994

#301994 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.183 H 279.5°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#301994
RGBrgb(48, 25, 148)
HSLhsl(251, 71%, 34%)
HSVhsv(251, 83%, 58%)
CMYKcmyk(67.6%, 83.1%, 0%, 42%)
CIE-LABlab(21.80, 45.74, -62.48)
CIE-LCHlch(21.80, 77.43, 306.20°)
OKLaboklab(34.65% 0.0302 -0.1804)
OKLCHoklch(34.65% 0.183 279.5)
XYZxyz(6.9101, 3.4612, 28.3152)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301994 #7D9419
analogous
#193F94 #301994 #6E1994
triadic
#301994 #943019 #199430
tetradic
#301994 #94193F #7D9419 #19946E
square
#301994 #94193F #7D9419 #19946E
split-complementary
#301994 #946E19 #3F9419
monochromatic
#0E072B #1F1060 #301994 #4122C8 #6447E0

Accessibility & contrast

On white

12.41
#301994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#301994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301994
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301994#FFFFFF#000000##FFFFFF
##3019941.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301994;
/* rgb */ color: rgb(48, 25, 148);
/* oklch */ color: oklch(34.7% 0.183 279.5);
Tailwind
colors: {
  custom: {
    50: '#785bb5',
    500: '#301994',
    950: '#000000',
  },
}
SCSS
$custom: #301994;
$custom-light: #785bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#301994",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 148
  },
  "hsl": {
    "h": 251.22,
    "s": 71.098,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34652,
    "c": 0.18291,
    "h": 279.5
  },
  "luminance": 0.03462
}

Semantic roles & 50–950 ramp

primary
#301994
secondary
#ABC147
accent
#EE3ACC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301994

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

Preview Lab → · Contrast checker → · Palette generator →

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