#301678#301678

#301678 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.152 H 285.7°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#301678
RGBrgb(48, 22, 120)
HSLhsl(256, 69%, 28%)
HSVhsv(256, 82%, 47%)
CMYKcmyk(60%, 81.7%, 0%, 52.9%)
CIE-LABlab(18.18, 38.70, -50.84)
CIE-LCHlch(18.18, 63.90, 307.28°)
OKLaboklab(31.21% 0.0411 -0.1464)
OKLCHoklch(31.21% 0.152 285.7)
XYZxyz(4.8950, 2.5580, 18.0015)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301678 #5E7816
analogous
#162D78 #301678 #611678
triadic
#301678 #783016 #167830
tetradic
#301678 #78162D #5E7816 #167861
square
#301678 #78162D #5E7816 #167861
split-complementary
#301678 #786116 #2D7816
monochromatic
#0A051A #1B0D44 #301678 #451FAC #5C2FD9

Accessibility & contrast

On white

13.89
#301678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301678
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301678#FFFFFF#000000##FFFFFF
##3016781.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#0A3347
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #301678;
/* rgb */ color: rgb(48, 22, 120);
/* oklch */ color: oklch(31.2% 0.152 285.7);
Tailwind
colors: {
  custom: {
    50: '#7257a0',
    500: '#301678',
    950: '#000000',
  },
}
SCSS
$custom: #301678;
$custom-light: #7257a0;
$custom-dark: #000000;
JSON
{
  "hex": "#301678",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 255.918,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31212,
    "c": 0.15211,
    "h": 285.7
  },
  "luminance": 0.02558
}

Semantic roles & 50–950 ramp

primary
#301678
secondary
#8FAD3C
accent
#EC3CBD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #301678

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

Preview Lab → · Contrast checker → · Palette generator →

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