#301B86#301B86

#301B86 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.164 H 281.7°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#301B86
RGBrgb(48, 27, 134)
HSLhsl(252, 66%, 32%)
HSVhsv(252, 80%, 53%)
CMYKcmyk(64.2%, 79.9%, 0%, 47.5%)
CIE-LABlab(20.57, 40.49, -55.79)
CIE-LCHlch(20.57, 68.93, 305.97°)
OKLaboklab(33.33% 0.0335 -0.1609)
OKLCHoklch(33.33% 0.164 281.7)
XYZxyz(5.9126, 3.1330, 22.8428)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B86 #71861B
analogous
#1B3C86 #301B86 #661B86
triadic
#301B86 #86301B #1B8630
tetradic
#301B86 #861B3C #71861B #1B8666
square
#301B86 #861B3C #71861B #1B8666
split-complementary
#301B86 #86661B #3C861B
monochromatic
#0C0620 #1E1153 #301B86 #4225B9 #6042D9

Accessibility & contrast

On white

12.91
#301B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#301B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B86
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B86#FFFFFF#000000##FFFFFF
##301B861.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #301b86;
/* rgb */ color: rgb(48, 27, 134);
/* oklch */ color: oklch(33.3% 0.164 281.7);
Tailwind
colors: {
  custom: {
    50: '#755baa',
    500: '#301b86',
    950: '#000000',
  },
}
SCSS
$custom: #301b86;
$custom-light: #755baa;
$custom-dark: #000000;
JSON
{
  "hex": "#301b86",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 251.776,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33332,
    "c": 0.16439,
    "h": 281.7
  },
  "luminance": 0.03133
}

Semantic roles & 50–950 ramp

primary
#301B86
secondary
#A2B944
accent
#E93EC8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301B86

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

Preview Lab → · Contrast checker → · Palette generator →

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