#301171#301171

#301171 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.148 H 288.4°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#301171
RGBrgb(48, 17, 113)
HSLhsl(259, 74%, 25%)
HSVhsv(259, 85%, 44%)
CMYKcmyk(57.5%, 85%, 0%, 55.7%)
CIE-LABlab(16.61, 38.97, -48.91)
CIE-LCHlch(16.61, 62.54, 308.54°)
OKLaboklab(29.9% 0.047 -0.1408)
OKLCHoklch(29.9% 0.148 288.4)
XYZxyz(4.3991, 2.2213, 15.8165)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301171 #527111
analogous
#112271 #301171 #601171
triadic
#301171 #713011 #117130
tetradic
#301171 #711122 #527111 #117160
square
#301171 #711122 #527111 #117160
split-complementary
#301171 #716011 #227111
monochromatic
#0B041B #19093C #301171 #4719A6 #5D21DB

Accessibility & contrast

On white

14.54
#301171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#301171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301171
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301171#FFFFFF#000000##FFFFFF
##3011711.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.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: #301171;
/* rgb */ color: rgb(48, 17, 113);
/* oklch */ color: oklch(29.9% 0.148 288.4);
Tailwind
colors: {
  custom: {
    50: '#71549b',
    500: '#301171',
    950: '#000000',
  },
}
SCSS
$custom: #301171;
$custom-light: #71549b;
$custom-dark: #000000;
JSON
{
  "hex": "#301171",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 259.375,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29895,
    "c": 0.14839,
    "h": 288.4
  },
  "luminance": 0.02222
}

Semantic roles & 50–950 ramp

primary
#301171
secondary
#83A836
accent
#F137B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301171

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

Preview Lab → · Contrast checker → · Palette generator →

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