#301056#301056

#301056 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.117 H 299.0°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#301056
RGBrgb(48, 16, 86)
HSLhsl(267, 69%, 20%)
HSVhsv(267, 81%, 34%)
CMYKcmyk(44.2%, 81.4%, 0%, 66.3%)
CIE-LABlab(13.66, 31.64, -35.87)
CIE-LCHlch(13.66, 47.83, 311.42°)
OKLaboklab(26.99% 0.0568 -0.1025)
OKLCHoklch(26.99% 0.117 299)
XYZxyz(3.0835, 1.6708, 8.9623)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301056 #365610
analogous
#101356 #301056 #531056
triadic
#301056 #563010 #105630
tetradic
#301056 #561013 #365610 #105653
square
#301056 #561013 #365610 #105653
split-complementary
#301056 #565310 #135610
monochromatic
#0E051A #130622 #301056 #4D1A8A #6A23BD

Accessibility & contrast

On white

15.74
#301056 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#301056 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301056
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301056#FFFFFF#000000##FFFFFF
##3010561.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002358
Deuteranopia (green-blind)
#002255
Tritanopia (blue-blind)
#272232
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #301056;
/* rgb */ color: rgb(48, 16, 86);
/* oklch */ color: oklch(27.0% 0.117 299.0);
Tailwind
colors: {
  custom: {
    50: '#6d5286',
    500: '#301056',
    950: '#000000',
  },
}
SCSS
$custom: #301056;
$custom-light: #6d5286;
$custom-dark: #000000;
JSON
{
  "hex": "#301056",
  "rgb": {
    "r": 48,
    "g": 16,
    "b": 86
  },
  "hsl": {
    "h": 267.429,
    "s": 68.627,
    "l": 20
  },
  "oklch": {
    "l": 0.26991,
    "c": 0.11724,
    "h": 299
  },
  "luminance": 0.01671
}

Semantic roles & 50–950 ramp

primary
#301056
secondary
#658F32
accent
#EB3C9B
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #301056

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

Preview Lab → · Contrast checker → · Palette generator →

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