#301B92#301B92

#301B92 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.179 H 279.6°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#301B92
RGBrgb(48, 27, 146)
HSLhsl(251, 69%, 34%)
HSVhsv(251, 82%, 57%)
CMYKcmyk(67.1%, 81.5%, 0%, 42.7%)
CIE-LABlab(21.90, 44.19, -61.09)
CIE-LCHlch(21.90, 75.40, 305.88°)
OKLaboklab(34.65% 0.0298 -0.1764)
OKLCHoklch(34.65% 0.179 279.6)
XYZxyz(6.7975, 3.4870, 27.5034)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B92 #7D921B
analogous
#1B4292 #301B92 #6C1B92
triadic
#301B92 #92301B #1B9230
tetradic
#301B92 #921B42 #7D921B #1B926C
square
#301B92 #921B42 #7D921B #1B926C
split-complementary
#301B92 #926C1B #42921B
monochromatic
#0E082B #1F115E #301B92 #4125C6 #644ADE

Accessibility & contrast

On white

12.37
#301B92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301B92
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B92#FFFFFF#000000##FFFFFF
##301B921.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003995
Deuteranopia (green-blind)
#003090
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301b92;
/* rgb */ color: rgb(48, 27, 146);
/* oklch */ color: oklch(34.6% 0.179 279.6);
Tailwind
colors: {
  custom: {
    50: '#775cb3',
    500: '#301b92',
    950: '#000000',
  },
}
SCSS
$custom: #301b92;
$custom-light: #775cb3;
$custom-dark: #000000;
JSON
{
  "hex": "#301b92",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 146
  },
  "hsl": {
    "h": 250.588,
    "s": 68.786,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3465,
    "c": 0.17889,
    "h": 279.6
  },
  "luminance": 0.03488
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #301B92

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

Preview Lab → · Contrast checker → · Palette generator →

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