#301576#301576

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

Color values

HEX#301576
RGBrgb(48, 21, 118)
HSLhsl(257, 70%, 27%)
HSVhsv(257, 82%, 46%)
CMYKcmyk(59.3%, 82.2%, 0%, 53.7%)
CIE-LABlab(17.79, 38.59, -50.19)
CIE-LCHlch(17.79, 63.31, 307.56°)
OKLaboklab(30.88% 0.0425 -0.1445)
OKLCHoklch(30.88% 0.151 286.4)
XYZxyz(4.7561, 2.4724, 17.3626)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301576 #5B7615
analogous
#152B76 #301576 #611576
triadic
#301576 #763015 #157630
tetradic
#301576 #76152B #5B7615 #157661
square
#301576 #76152B #5B7615 #157661
split-complementary
#301576 #766115 #2B7615
monochromatic
#0B051A #1B0C42 #301576 #451EAA #5C2CD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##301576#FFFFFF#000000##FFFFFF
##3015761.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)
#002E79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#0D3246
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #301576;
/* rgb */ color: rgb(48, 21, 118);
/* oklch */ color: oklch(30.9% 0.151 286.4);
Tailwind
colors: {
  custom: {
    50: '#72579f',
    500: '#301576',
    950: '#000000',
  },
}
SCSS
$custom: #301576;
$custom-light: #72579f;
$custom-dark: #000000;
JSON
{
  "hex": "#301576",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 256.701,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3088,
    "c": 0.15065,
    "h": 286.4
  },
  "luminance": 0.02473
}

Semantic roles & 50–950 ramp

primary
#301576
secondary
#8CAC3B
accent
#ED3BBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #301576

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

Preview Lab → · Contrast checker → · Palette generator →

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