#301556#301556

#301556 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.111 H 297.7°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#301556
RGBrgb(48, 21, 86)
HSLhsl(265, 61%, 21%)
HSVhsv(265, 76%, 34%)
CMYKcmyk(44.2%, 75.6%, 0%, 66.3%)
CIE-LABlab(14.60, 28.97, -34.32)
CIE-LCHlch(14.60, 44.91, 310.16°)
OKLaboklab(27.66% 0.0514 -0.098)
OKLCHoklch(27.66% 0.111 297.7)
XYZxyz(3.1664, 1.8365, 8.9900)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301556 #3B5615
analogous
#151A56 #301556 #501556
triadic
#301556 #563015 #155630
tetradic
#301556 #56151A #3B5615 #155650
square
#301556 #56151A #3B5615 #155650
split-complementary
#301556 #565015 #1A5615
monochromatic
#0E0619 #150925 #301556 #4B2187 #672DB8

Accessibility & contrast

On white

15.36
#301556 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301556
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301556#FFFFFF#000000##FFFFFF
##3015561.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301556;
/* rgb */ color: rgb(48, 21, 86);
/* oklch */ color: oklch(27.7% 0.111 297.7);
Tailwind
colors: {
  custom: {
    50: '#6c5586',
    500: '#301556',
    950: '#000000',
  },
}
SCSS
$custom: #301556;
$custom-light: #6c5586;
$custom-dark: #000000;
JSON
{
  "hex": "#301556",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 86
  },
  "hsl": {
    "h": 264.923,
    "s": 60.748,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27664,
    "c": 0.1107,
    "h": 297.7
  },
  "luminance": 0.01837
}

Semantic roles & 50–950 ramp

primary
#301556
secondary
#6B8E39
accent
#E444A1
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301556

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

Preview Lab → · Contrast checker → · Palette generator →

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