#301371#301371

#301371 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.147 H 288.1°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#301371
RGBrgb(48, 19, 113)
HSLhsl(259, 71%, 26%)
HSVhsv(259, 83%, 44%)
CMYKcmyk(57.5%, 83.2%, 0%, 55.7%)
CIE-LABlab(16.92, 38.05, -48.40)
CIE-LCHlch(16.92, 61.57, 308.18°)
OKLaboklab(30.11% 0.0456 -0.1393)
OKLCHoklch(30.11% 0.147 288.1)
XYZxyz(4.4316, 2.2861, 15.8273)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301371 #547113
analogous
#132571 #301371 #5F1371
triadic
#301371 #713013 #137130
tetradic
#301371 #711325 #547113 #13715F
square
#301371 #711325 #547113 #13715F
split-complementary
#301371 #715F13 #257113
monochromatic
#0B041A #1A0A3D #301371 #461CA5 #5D25DA

Accessibility & contrast

On white

14.41
#301371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#301371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301371
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301371#FFFFFF#000000##FFFFFF
##3013711.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#142F42
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #301371;
/* rgb */ color: rgb(48, 19, 113);
/* oklch */ color: oklch(30.1% 0.147 288.1);
Tailwind
colors: {
  custom: {
    50: '#71559b',
    500: '#301371',
    950: '#000000',
  },
}
SCSS
$custom: #301371;
$custom-light: #71559b;
$custom-dark: #000000;
JSON
{
  "hex": "#301371",
  "rgb": {
    "r": 48,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 258.511,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30113,
    "c": 0.14654,
    "h": 288.1
  },
  "luminance": 0.02286
}

Semantic roles & 50–950 ramp

primary
#301371
secondary
#85A838
accent
#EE3AB6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301371

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

Preview Lab → · Contrast checker → · Palette generator →

#301371 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva