#301871#301871

#301871 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.141 H 287.2°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#301871
RGBrgb(48, 24, 113)
HSLhsl(256, 65%, 27%)
HSVhsv(256, 79%, 44%)
CMYKcmyk(57.5%, 78.8%, 0%, 55.7%)
CIE-LABlab(17.80, 35.53, -46.95)
CIE-LCHlch(17.80, 58.88, 307.12°)
OKLaboklab(30.73% 0.0418 -0.1351)
OKLCHoklch(30.73% 0.141 287.2)
XYZxyz(4.5253, 2.4737, 15.8586)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301871 #597118
analogous
#182C71 #301871 #5D1871
triadic
#301871 #713018 #187130
tetradic
#301871 #71182C #597118 #18715D
square
#301871 #71182C #597118 #18715D
split-complementary
#301871 #715D18 #2C7118
monochromatic
#0B0519 #1B0D3F #301871 #4523A3 #5C30D3

Accessibility & contrast

On white

14.05
#301871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#301871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301871
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301871#FFFFFF#000000##FFFFFF
##3018711.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#143143
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #301871;
/* rgb */ color: rgb(48, 24, 113);
/* oklch */ color: oklch(30.7% 0.141 287.2);
Tailwind
colors: {
  custom: {
    50: '#71589b',
    500: '#301871',
    950: '#000000',
  },
}
SCSS
$custom: #301871;
$custom-light: #71589b;
$custom-dark: #000000;
JSON
{
  "hex": "#301871",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 256.18,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30725,
    "c": 0.14142,
    "h": 287.2
  },
  "luminance": 0.02474
}

Semantic roles & 50–950 ramp

primary
#301871
secondary
#8AA63E
accent
#E840BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301871

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

Preview Lab → · Contrast checker → · Palette generator →

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