#301555#301555

#301555 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.109 H 298.2°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#301555
RGBrgb(48, 21, 85)
HSLhsl(265, 60%, 21%)
HSVhsv(265, 75%, 33%)
CMYKcmyk(43.5%, 75.3%, 0%, 66.7%)
CIE-LABlab(14.52, 28.67, -33.79)
CIE-LCHlch(14.52, 44.31, 310.31°)
OKLaboklab(27.57% 0.0516 -0.0965)
OKLCHoklch(27.57% 0.109 298.2)
XYZxyz(3.1264, 1.8205, 8.7793)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301555 #3A5515
analogous
#151A55 #301555 #501555
triadic
#301555 #553015 #155530
tetradic
#301555 #55151A #3A5515 #155550
square
#301555 #55151A #3A5515 #155550
split-complementary
#301555 #555015 #1A5515
monochromatic
#0E0619 #140924 #301555 #4C2186 #672DB7

Accessibility & contrast

On white

15.39
#301555 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#301555 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301555
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301555#FFFFFF#000000##FFFFFF
##3015551.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002557
Deuteranopia (green-blind)
#002454
Tritanopia (blue-blind)
#272533
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301555;
/* rgb */ color: rgb(48, 21, 85);
/* oklch */ color: oklch(27.6% 0.109 298.2);
Tailwind
colors: {
  custom: {
    50: '#6c5585',
    500: '#301555',
    950: '#000000',
  },
}
SCSS
$custom: #301555;
$custom-light: #6c5585;
$custom-dark: #000000;
JSON
{
  "hex": "#301555",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 85
  },
  "hsl": {
    "h": 265.313,
    "s": 60.377,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27572,
    "c": 0.1094,
    "h": 298.2
  },
  "luminance": 0.01821
}

Semantic roles & 50–950 ramp

primary
#301555
secondary
#698D39
accent
#E444A0
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301555

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

Preview Lab → · Contrast checker → · Palette generator →

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