#301676#301676

#301676 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.150 H 286.2°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#301676
RGBrgb(48, 22, 118)
HSLhsl(256, 69%, 27%)
HSVhsv(256, 81%, 46%)
CMYKcmyk(59.3%, 81.4%, 0%, 53.7%)
CIE-LABlab(17.96, 38.10, -49.91)
CIE-LCHlch(17.96, 62.79, 307.36°)
OKLaboklab(31% 0.0418 -0.1437)
OKLCHoklch(31% 0.15 286.2)
XYZxyz(4.7749, 2.5099, 17.3689)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301676 #5C7616
analogous
#162C76 #301676 #601676
triadic
#301676 #763016 #167630
tetradic
#301676 #76162C #5C7616 #167660
square
#301676 #76162C #5C7616 #167660
split-complementary
#301676 #766016 #2C7616
monochromatic
#0A051A #1B0C42 #301676 #4520AA #5C2ED8

Accessibility & contrast

On white

13.98
#301676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#301676 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301676
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301676#FFFFFF#000000##FFFFFF
##3016761.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301676;
/* rgb */ color: rgb(48, 22, 118);
/* oklch */ color: oklch(31.0% 0.150 286.2);
Tailwind
colors: {
  custom: {
    50: '#72579f',
    500: '#301676',
    950: '#000000',
  },
}
SCSS
$custom: #301676;
$custom-light: #72579f;
$custom-dark: #000000;
JSON
{
  "hex": "#301676",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 118
  },
  "hsl": {
    "h": 256.25,
    "s": 68.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30998,
    "c": 0.14968,
    "h": 286.2
  },
  "luminance": 0.0251
}

Semantic roles & 50–950 ramp

primary
#301676
secondary
#8DAC3C
accent
#EB3CBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #301676

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

Preview Lab → · Contrast checker → · Palette generator →

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