#301776#301776

#301776 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.149 H 286.0°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#301776
RGBrgb(48, 23, 118)
HSLhsl(256, 67%, 28%)
HSVhsv(256, 81%, 46%)
CMYKcmyk(59.3%, 80.5%, 0%, 53.7%)
CIE-LABlab(18.14, 37.59, -49.62)
CIE-LCHlch(18.14, 62.25, 307.15°)
OKLaboklab(31.12% 0.041 -0.1429)
OKLCHoklch(31.12% 0.149 286)
XYZxyz(4.7943, 2.5489, 17.3754)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301776 #5D7617
analogous
#172E76 #301776 #5F1776
triadic
#301776 #763017 #177630
tetradic
#301776 #76172E #5D7617 #17765F
square
#301776 #76172E #5D7617 #17765F
split-complementary
#301776 #765F17 #2E7617
monochromatic
#0A051A #1B0D43 #301776 #4521A9 #5C31D7

Accessibility & contrast

On white

13.91
#301776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#301776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301776
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301776#FFFFFF#000000##FFFFFF
##3017761.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#0D3246
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #301776;
/* rgb */ color: rgb(48, 23, 118);
/* oklch */ color: oklch(31.1% 0.149 286.0);
Tailwind
colors: {
  custom: {
    50: '#72589e',
    500: '#301776',
    950: '#000000',
  },
}
SCSS
$custom: #301776;
$custom-light: #72589e;
$custom-dark: #000000;
JSON
{
  "hex": "#301776",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 255.789,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3112,
    "c": 0.14868,
    "h": 286
  },
  "luminance": 0.02549
}

Semantic roles & 50–950 ramp

primary
#301776
secondary
#8EAB3E
accent
#EA3EBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #301776

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

Preview Lab → · Contrast checker → · Palette generator →

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