#301B85#301B85

#301B85 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.163 H 281.9°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#301B85
RGBrgb(48, 27, 133)
HSLhsl(252, 66%, 31%)
HSVhsv(252, 80%, 52%)
CMYKcmyk(63.9%, 79.7%, 0%, 47.8%)
CIE-LABlab(20.46, 40.18, -55.34)
CIE-LCHlch(20.46, 68.39, 305.98°)
OKLaboklab(33.22% 0.0338 -0.1596)
OKLCHoklch(33.22% 0.163 281.9)
XYZxyz(5.8432, 3.1053, 22.4772)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B85 #70851B
analogous
#1B3B85 #301B85 #651B85
triadic
#301B85 #85301B #1B8530
tetradic
#301B85 #851B3B #70851B #1B8565
square
#301B85 #851B3B #70851B #1B8565
split-complementary
#301B85 #85651B #3B851B
monochromatic
#0B061F #1E1152 #301B85 #4225B8 #6042D9

Accessibility & contrast

On white

12.95
#301B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#301B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B85
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B85#FFFFFF#000000##FFFFFF
##301B851.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301b85;
/* rgb */ color: rgb(48, 27, 133);
/* oklch */ color: oklch(33.2% 0.163 281.9);
Tailwind
colors: {
  custom: {
    50: '#745baa',
    500: '#301b85',
    950: '#000000',
  },
}
SCSS
$custom: #301b85;
$custom-light: #745baa;
$custom-dark: #000000;
JSON
{
  "hex": "#301b85",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 251.887,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33224,
    "c": 0.16316,
    "h": 281.9
  },
  "luminance": 0.03106
}

Semantic roles & 50–950 ramp

primary
#301B85
secondary
#A1B844
accent
#E93FC7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301B85

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

Preview Lab → · Contrast checker → · Palette generator →

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