#301B94#301B94

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

Color values

HEX#301B94
RGBrgb(48, 27, 148)
HSLhsl(250, 69%, 34%)
HSVhsv(250, 82%, 58%)
CMYKcmyk(67.6%, 81.8%, 0%, 42%)
CIE-LABlab(22.12, 44.80, -61.95)
CIE-LCHlch(22.12, 76.45, 305.87°)
OKLaboklab(34.87% 0.0292 -0.1789)
OKLCHoklch(34.87% 0.181 279.3)
XYZxyz(6.9544, 3.5498, 28.3299)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B94 #7F941B
analogous
#1B4394 #301B94 #6D1B94
triadic
#301B94 #94301B #1B9430
tetradic
#301B94 #941B43 #7F941B #1B946D
square
#301B94 #941B43 #7F941B #1B946D
split-complementary
#301B94 #946D1B #43941B
monochromatic
#0E082C #1F1260 #301B94 #4124C8 #654BDE

Accessibility & contrast

On white

12.28
#301B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301B94
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B94#FFFFFF#000000##FFFFFF
##301B941.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.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: #301b94;
/* rgb */ color: rgb(48, 27, 148);
/* oklch */ color: oklch(34.9% 0.181 279.3);
Tailwind
colors: {
  custom: {
    50: '#785cb5',
    500: '#301b94',
    950: '#000000',
  },
}
SCSS
$custom: #301b94;
$custom-light: #785cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#301b94",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 250.413,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34874,
    "c": 0.18126,
    "h": 279.3
  },
  "luminance": 0.0355
}

Semantic roles & 50–950 ramp

primary
#301B94
secondary
#ACC04B
accent
#EC3CCD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301B94

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

Preview Lab → · Contrast checker → · Palette generator →

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