#301276#301276

#301276 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.153 H 286.8°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#301276
RGBrgb(48, 18, 118)
HSLhsl(258, 74%, 27%)
HSVhsv(258, 85%, 46%)
CMYKcmyk(59.3%, 84.7%, 0%, 53.7%)
CIE-LABlab(17.31, 39.98, -50.98)
CIE-LCHlch(17.31, 64.79, 308.11°)
OKLaboklab(30.55% 0.0445 -0.1468)
OKLCHoklch(30.55% 0.153 286.8)
XYZxyz(4.7043, 2.3687, 17.3454)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301276 #587612
analogous
#122676 #301276 #621276
triadic
#301276 #763012 #127630
tetradic
#301276 #761226 #587612 #127662
square
#301276 #761226 #587612 #127662
split-complementary
#301276 #766212 #267612
monochromatic
#0B041B #1A0A41 #301276 #461AAB #5C25DE

Accessibility & contrast

On white

14.25
#301276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#301276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301276
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301276#FFFFFF#000000##FFFFFF
##3012761.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#0E3045
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #301276;
/* rgb */ color: rgb(48, 18, 118);
/* oklch */ color: oklch(30.5% 0.153 286.8);
Tailwind
colors: {
  custom: {
    50: '#72559f',
    500: '#301276',
    950: '#000000',
  },
}
SCSS
$custom: #301276;
$custom-light: #72559f;
$custom-dark: #000000;
JSON
{
  "hex": "#301276",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 258,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30548,
    "c": 0.15339,
    "h": 286.8
  },
  "luminance": 0.02369
}

Semantic roles & 50–950 ramp

primary
#301276
secondary
#89AD37
accent
#F038B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #301276

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

Preview Lab → · Contrast checker → · Palette generator →

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