#301A94#301A94

#301A94 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.182 H 279.4°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#301A94
RGBrgb(48, 26, 148)
HSLhsl(251, 70%, 34%)
HSVhsv(251, 82%, 58%)
CMYKcmyk(67.6%, 82.4%, 0%, 42%)
CIE-LABlab(21.96, 45.27, -62.22)
CIE-LCHlch(21.96, 76.95, 306.04°)
OKLaboklab(34.76% 0.0297 -0.1797)
OKLCHoklch(34.76% 0.182 279.4)
XYZxyz(6.9319, 3.5047, 28.3224)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A94 #7E941A
analogous
#1A4194 #301A94 #6D1A94
triadic
#301A94 #94301A #1A9430
tetradic
#301A94 #941A41 #7E941A #1A946D
square
#301A94 #941A41 #7E941A #1A946D
split-complementary
#301A94 #946D1A #41941A
monochromatic
#0E082C #1F1160 #301A94 #4123C8 #6449DF

Accessibility & contrast

On white

12.35
#301A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#301A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A94
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A94#FFFFFF#000000##FFFFFF
##301A941.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301a94;
/* rgb */ color: rgb(48, 26, 148);
/* oklch */ color: oklch(34.8% 0.182 279.4);
Tailwind
colors: {
  custom: {
    50: '#785bb5',
    500: '#301a94',
    950: '#000000',
  },
}
SCSS
$custom: #301a94;
$custom-light: #785bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#301a94",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 148
  },
  "hsl": {
    "h": 250.82,
    "s": 70.115,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34762,
    "c": 0.1821,
    "h": 279.4
  },
  "luminance": 0.03505
}

Semantic roles & 50–950 ramp

primary
#301A94
secondary
#ABC149
accent
#ED3BCD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301A94

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

Preview Lab → · Contrast checker → · Palette generator →

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