#301271#301271

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

Color values

HEX#301271
RGBrgb(48, 18, 113)
HSLhsl(259, 73%, 26%)
HSVhsv(259, 84%, 44%)
CMYKcmyk(57.5%, 84.1%, 0%, 55.7%)
CIE-LABlab(16.76, 38.52, -48.66)
CIE-LCHlch(16.76, 62.06, 308.36°)
OKLaboklab(30% 0.0463 -0.14)
OKLCHoklch(30% 0.147 288.3)
XYZxyz(4.4150, 2.2530, 15.8218)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301271 #537112
analogous
#122471 #301271 #5F1271
triadic
#301271 #713012 #127130
tetradic
#301271 #711224 #537112 #12715F
square
#301271 #711224 #537112 #12715F
split-complementary
#301271 #715F12 #247112
monochromatic
#0B041A #1A0A3C #301271 #461AA6 #5D23DB

Accessibility & contrast

On white

14.48
#301271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#301271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301271
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301271#FFFFFF#000000##FFFFFF
##3012711.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#142E42
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #301271;
/* rgb */ color: rgb(48, 18, 113);
/* oklch */ color: oklch(30.0% 0.147 288.3);
Tailwind
colors: {
  custom: {
    50: '#71559b',
    500: '#301271',
    950: '#000000',
  },
}
SCSS
$custom: #301271;
$custom-light: #71559b;
$custom-dark: #000000;
JSON
{
  "hex": "#301271",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 258.947,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30002,
    "c": 0.14748,
    "h": 288.3
  },
  "luminance": 0.02253
}

Semantic roles & 50–950 ramp

primary
#301271
secondary
#84A837
accent
#EF39B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301271

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

Preview Lab → · Contrast checker → · Palette generator →

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