#301557#301557

#301557 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.112 H 297.2°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#301557
RGBrgb(48, 21, 87)
HSLhsl(265, 61%, 21%)
HSVhsv(265, 76%, 34%)
CMYKcmyk(44.8%, 75.9%, 0%, 65.9%)
CIE-LABlab(14.70, 29.26, -34.85)
CIE-LCHlch(14.70, 45.51, 310.02°)
OKLaboklab(27.76% 0.0512 -0.0996)
OKLCHoklch(27.76% 0.112 297.2)
XYZxyz(3.2069, 1.8528, 9.2036)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301557 #3C5715
analogous
#151B57 #301557 #511557
triadic
#301557 #573015 #155730
tetradic
#301557 #57151B #3C5715 #155751
square
#301557 #57151B #3C5715 #155751
split-complementary
#301557 #575115 #1B5715
monochromatic
#0E0619 #150926 #301557 #4B2188 #662DBA

Accessibility & contrast

On white

15.32
#301557 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#301557 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301557
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301557#FFFFFF#000000##FFFFFF
##3015571.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002456
Tritanopia (blue-blind)
#262534
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301557;
/* rgb */ color: rgb(48, 21, 87);
/* oklch */ color: oklch(27.8% 0.112 297.2);
Tailwind
colors: {
  custom: {
    50: '#6d5587',
    500: '#301557',
    950: '#000000',
  },
}
SCSS
$custom: #301557;
$custom-light: #6d5587;
$custom-dark: #000000;
JSON
{
  "hex": "#301557",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 87
  },
  "hsl": {
    "h": 264.545,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27756,
    "c": 0.11198,
    "h": 297.2
  },
  "luminance": 0.01853
}

Semantic roles & 50–950 ramp

primary
#301557
secondary
#6C8F39
accent
#E444A3
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301557

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

Preview Lab → · Contrast checker → · Palette generator →

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