#301971#301971

#301971 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.140 H 287.0°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#301971
RGBrgb(48, 25, 113)
HSLhsl(256, 64%, 27%)
HSVhsv(256, 78%, 44%)
CMYKcmyk(57.5%, 77.9%, 0%, 55.7%)
CIE-LABlab(17.99, 34.99, -46.64)
CIE-LCHlch(17.99, 58.31, 306.88°)
OKLaboklab(30.86% 0.0409 -0.1342)
OKLCHoklch(30.86% 0.14 287)
XYZxyz(4.5463, 2.5157, 15.8656)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301971 #5A7119
analogous
#192E71 #301971 #5C1971
triadic
#301971 #713019 #197130
tetradic
#301971 #71192E #5A7119 #19715C
square
#301971 #71192E #5A7119 #19715C
split-complementary
#301971 #715C19 #2E7119
monochromatic
#0B0619 #1B0E3F #301971 #4524A3 #5C33D2

Accessibility & contrast

On white

13.97
#301971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#301971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301971
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301971#FFFFFF#000000##FFFFFF
##3019711.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301971;
/* rgb */ color: rgb(48, 25, 113);
/* oklch */ color: oklch(30.9% 0.140 287.0);
Tailwind
colors: {
  custom: {
    50: '#71589b',
    500: '#301971',
    950: '#000000',
  },
}
SCSS
$custom: #301971;
$custom-light: #71589b;
$custom-dark: #000000;
JSON
{
  "hex": "#301971",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 255.682,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30858,
    "c": 0.1403,
    "h": 287
  },
  "luminance": 0.02516
}

Semantic roles & 50–950 ramp

primary
#301971
secondary
#8BA640
accent
#E741BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301971

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

Preview Lab → · Contrast checker → · Palette generator →

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