#301779#301779

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

Color values

HEX#301779
RGBrgb(48, 23, 121)
HSLhsl(255, 68%, 28%)
HSVhsv(255, 81%, 47%)
CMYKcmyk(60.3%, 81%, 0%, 52.5%)
CIE-LABlab(18.46, 38.51, -51.02)
CIE-LCHlch(18.46, 63.92, 307.05°)
OKLaboklab(31.44% 0.0401 -0.147)
OKLCHoklch(31.44% 0.152 285.3)
XYZxyz(4.9755, 2.6213, 18.3292)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301779 #607917
analogous
#172F79 #301779 #611779
triadic
#301779 #793017 #177930
tetradic
#301779 #79172F #607917 #177961
square
#301779 #79172F #607917 #177961
split-complementary
#301779 #796117 #2F7917
monochromatic
#0A051A #1C0D46 #301779 #4421AC #5D32D8

Accessibility & contrast

On white

13.78
#301779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#301779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301779
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301779#FFFFFF#000000##FFFFFF
##3017791.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#073448
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301779;
/* rgb */ color: rgb(48, 23, 121);
/* oklch */ color: oklch(31.4% 0.152 285.3);
Tailwind
colors: {
  custom: {
    50: '#7258a1',
    500: '#301779',
    950: '#000000',
  },
}
SCSS
$custom: #301779;
$custom-light: #7258a1;
$custom-dark: #000000;
JSON
{
  "hex": "#301779",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 255.306,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3144,
    "c": 0.15235,
    "h": 285.3
  },
  "luminance": 0.02622
}

Semantic roles & 50–950 ramp

primary
#301779
secondary
#91AE3E
accent
#EB3DBF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #301779

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

Preview Lab → · Contrast checker → · Palette generator →

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