#301559#301559

#301559 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.115 H 296.3°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#301559
RGBrgb(48, 21, 89)
HSLhsl(264, 62%, 22%)
HSVhsv(264, 76%, 35%)
CMYKcmyk(46.1%, 76.4%, 0%, 65.1%)
CIE-LABlab(14.88, 29.86, -35.90)
CIE-LCHlch(14.88, 46.70, 309.75°)
OKLaboklab(27.94% 0.0508 -0.1027)
OKLCHoklch(27.94% 0.115 296.3)
XYZxyz(3.2898, 1.8859, 9.6399)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301559 #3E5915
analogous
#151C59 #301559 #521559
triadic
#301559 #593015 #155930
tetradic
#301559 #59151C #3E5915 #155952
square
#301559 #59151C #3E5915 #155952
split-complementary
#301559 #595215 #1C5915
monochromatic
#0D0619 #150927 #301559 #4B218B #652CBC

Accessibility & contrast

On white

15.25
#301559 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#301559 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301559
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301559#FFFFFF#000000##FFFFFF
##3015591.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265B
Deuteranopia (green-blind)
#002458
Tritanopia (blue-blind)
#252635
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301559;
/* rgb */ color: rgb(48, 21, 89);
/* oklch */ color: oklch(27.9% 0.115 296.3);
Tailwind
colors: {
  custom: {
    50: '#6d5588',
    500: '#301559',
    950: '#000000',
  },
}
SCSS
$custom: #301559;
$custom-light: #6d5588;
$custom-dark: #000000;
JSON
{
  "hex": "#301559",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 89
  },
  "hsl": {
    "h": 263.824,
    "s": 61.818,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27942,
    "c": 0.11456,
    "h": 296.3
  },
  "luminance": 0.01886
}

Semantic roles & 50–950 ramp

primary
#301559
secondary
#6E9139
accent
#E543A5
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301559

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

Preview Lab → · Contrast checker → · Palette generator →

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