#301356#301356

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

Color values

HEX#301356
RGBrgb(48, 19, 86)
HSLhsl(266, 64%, 21%)
HSVhsv(266, 78%, 34%)
CMYKcmyk(44.2%, 77.9%, 0%, 66.3%)
CIE-LABlab(14.21, 30.08, -34.97)
CIE-LCHlch(14.21, 46.12, 310.70°)
OKLaboklab(27.38% 0.0537 -0.0999)
OKLCHoklch(27.38% 0.113 298.2)
XYZxyz(3.1311, 1.7660, 8.9782)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301356 #395613
analogous
#131756 #301356 #511356
triadic
#301356 #563013 #135630
tetradic
#301356 #561317 #395613 #135651
square
#301356 #561317 #395613 #135651
split-complementary
#301356 #565113 #175613
monochromatic
#0E0619 #140824 #301356 #4C1E88 #6829BA

Accessibility & contrast

On white

15.52
#301356 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#301356 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301356
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301356#FFFFFF#000000##FFFFFF
##3013561.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#272433
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #301356;
/* rgb */ color: rgb(48, 19, 86);
/* oklch */ color: oklch(27.4% 0.113 298.2);
Tailwind
colors: {
  custom: {
    50: '#6d5486',
    500: '#301356',
    950: '#000000',
  },
}
SCSS
$custom: #301356;
$custom-light: #6d5486;
$custom-dark: #000000;
JSON
{
  "hex": "#301356",
  "rgb": {
    "r": 48,
    "g": 19,
    "b": 86
  },
  "hsl": {
    "h": 265.97,
    "s": 63.81,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27381,
    "c": 0.11342,
    "h": 298.2
  },
  "luminance": 0.01766
}

Semantic roles & 50–950 ramp

primary
#301356
secondary
#688E36
accent
#E7419F
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301356

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

Preview Lab → · Contrast checker → · Palette generator →

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