#301987#301987

#301987 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.167 H 281.8°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#301987
RGBrgb(48, 25, 135)
HSLhsl(253, 69%, 31%)
HSVhsv(253, 81%, 53%)
CMYKcmyk(64.4%, 81.5%, 0%, 47.1%)
CIE-LABlab(20.33, 41.80, -56.81)
CIE-LCHlch(20.33, 70.53, 306.35°)
OKLaboklab(33.2% 0.0344 -0.1639)
OKLCHoklch(33.2% 0.167 281.8)
XYZxyz(5.9384, 3.0725, 23.1971)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301987 #708719
analogous
#193987 #301987 #671987
triadic
#301987 #873019 #198730
tetradic
#301987 #871939 #708719 #198767
square
#301987 #871939 #708719 #198767
split-complementary
#301987 #876719 #398719
monochromatic
#0B0620 #1E0F53 #301987 #4223BB #603FDB

Accessibility & contrast

On white

13.01
#301987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#301987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301987
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301987#FFFFFF#000000##FFFFFF
##3019871.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301987;
/* rgb */ color: rgb(48, 25, 135);
/* oklch */ color: oklch(33.2% 0.167 281.8);
Tailwind
colors: {
  custom: {
    50: '#755aab',
    500: '#301987',
    950: '#000000',
  },
}
SCSS
$custom: #301987;
$custom-light: #755aab;
$custom-dark: #000000;
JSON
{
  "hex": "#301987",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 252.545,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.332,
    "c": 0.16746,
    "h": 281.8
  },
  "luminance": 0.03073
}

Semantic roles & 50–950 ramp

primary
#301987
secondary
#A1BA41
accent
#EC3CC7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301987

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

Preview Lab → · Contrast checker → · Palette generator →

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