#301554#301554

#301554 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.108 H 298.6°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#301554
RGBrgb(48, 21, 84)
HSLhsl(266, 60%, 21%)
HSVhsv(266, 75%, 33%)
CMYKcmyk(42.9%, 75%, 0%, 67.1%)
CIE-LABlab(14.43, 28.37, -33.25)
CIE-LCHlch(14.43, 43.71, 310.47°)
OKLaboklab(27.48% 0.0518 -0.0949)
OKLCHoklch(27.48% 0.108 298.6)
XYZxyz(3.0869, 1.8048, 8.5715)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301554 #395415
analogous
#151A54 #301554 #4F1554
triadic
#301554 #543015 #155430
tetradic
#301554 #54151A #395415 #15544F
square
#301554 #54151A #395415 #15544F
split-complementary
#301554 #544F15 #1A5415
monochromatic
#0E0618 #140923 #301554 #4C2185 #682DB6

Accessibility & contrast

On white

15.43
#301554 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301554
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301554#FFFFFF#000000##FFFFFF
##3015541.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#002453
Tritanopia (blue-blind)
#272432
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #301554;
/* rgb */ color: rgb(48, 21, 84);
/* oklch */ color: oklch(27.5% 0.108 298.6);
Tailwind
colors: {
  custom: {
    50: '#6c5585',
    500: '#301554',
    950: '#000000',
  },
}
SCSS
$custom: #301554;
$custom-light: #6c5585;
$custom-dark: #000000;
JSON
{
  "hex": "#301554",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 84
  },
  "hsl": {
    "h": 265.714,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27482,
    "c": 0.10811,
    "h": 298.6
  },
  "luminance": 0.01805
}

Semantic roles & 50–950 ramp

primary
#301554
secondary
#688C39
accent
#E3459F
background
#F6F5F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301554

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

Preview Lab → · Contrast checker → · Palette generator →

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