#301256#301256

#301256 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.115 H 298.5°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#301256
RGBrgb(48, 18, 86)
HSLhsl(266, 65%, 20%)
HSVhsv(266, 79%, 34%)
CMYKcmyk(44.2%, 79.1%, 0%, 66.3%)
CIE-LABlab(14.02, 30.61, -35.28)
CIE-LCHlch(14.02, 46.71, 310.95°)
OKLaboklab(27.25% 0.0548 -0.1008)
OKLCHoklch(27.25% 0.115 298.5)
XYZxyz(3.1145, 1.7328, 8.9727)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301256 #385612
analogous
#121656 #301256 #521256
triadic
#301256 #563012 #125630
tetradic
#301256 #561216 #385612 #125652
square
#301256 #561216 #385612 #125652
split-complementary
#301256 #565212 #165612
monochromatic
#0E0519 #140723 #301256 #4C1D89 #6827BB

Accessibility & contrast

On white

15.59
#301256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301256
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301256#FFFFFF#000000##FFFFFF
##3012561.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301256;
/* rgb */ color: rgb(48, 18, 86);
/* oklch */ color: oklch(27.2% 0.115 298.5);
Tailwind
colors: {
  custom: {
    50: '#6d5386',
    500: '#301256',
    950: '#000000',
  },
}
SCSS
$custom: #301256;
$custom-light: #6d5386;
$custom-dark: #000000;
JSON
{
  "hex": "#301256",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 266.471,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27247,
    "c": 0.11473,
    "h": 298.5
  },
  "luminance": 0.01733
}

Semantic roles & 50–950 ramp

primary
#301256
secondary
#678F35
accent
#E83F9E
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #301256

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

Preview Lab → · Contrast checker → · Palette generator →

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