#301887#301887

#301887 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.168 H 282.0°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#301887
RGBrgb(48, 24, 135)
HSLhsl(253, 70%, 31%)
HSVhsv(253, 82%, 53%)
CMYKcmyk(64.4%, 82.2%, 0%, 47.1%)
CIE-LABlab(20.17, 42.28, -57.08)
CIE-LCHlch(20.17, 71.04, 306.53°)
OKLaboklab(33.08% 0.0349 -0.1647)
OKLCHoklch(33.08% 0.168 282)
XYZxyz(5.9174, 3.0305, 23.1901)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301887 #6F8718
analogous
#183787 #301887 #671887
triadic
#301887 #873018 #188730
tetradic
#301887 #871837 #6F8718 #188767
square
#301887 #871837 #6F8718 #188767
split-complementary
#301887 #876718 #378718
monochromatic
#0B061F #1E0F53 #301887 #4221BB #5F3DDC

Accessibility & contrast

On white

13.07
#301887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301887
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301887#FFFFFF#000000##FFFFFF
##3018871.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301887;
/* rgb */ color: rgb(48, 24, 135);
/* oklch */ color: oklch(33.1% 0.168 282.0);
Tailwind
colors: {
  custom: {
    50: '#7559ab',
    500: '#301887',
    950: '#000000',
  },
}
SCSS
$custom: #301887;
$custom-light: #7559ab;
$custom-dark: #000000;
JSON
{
  "hex": "#301887",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 252.973,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33084,
    "c": 0.16835,
    "h": 282
  },
  "luminance": 0.03031
}

Semantic roles & 50–950 ramp

primary
#301887
secondary
#A0BB40
accent
#ED3BC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301887

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

Preview Lab → · Contrast checker → · Palette generator →

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