#301777#301777

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

Color values

HEX#301777
RGBrgb(48, 23, 119)
HSLhsl(256, 68%, 28%)
HSVhsv(256, 81%, 47%)
CMYKcmyk(59.7%, 80.7%, 0%, 53.3%)
CIE-LABlab(18.24, 37.90, -50.09)
CIE-LCHlch(18.24, 62.81, 307.11°)
OKLaboklab(31.23% 0.0407 -0.1443)
OKLCHoklch(31.23% 0.15 285.8)
XYZxyz(4.8541, 2.5728, 17.6900)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301777 #5E7717
analogous
#172E77 #301777 #601777
triadic
#301777 #773017 #177730
tetradic
#301777 #77172E #5E7717 #177760
square
#301777 #77172E #5E7717 #177760
split-complementary
#301777 #776017 #2E7717
monochromatic
#0A051A #1B0D44 #301777 #4521AA #5C31D7

Accessibility & contrast

On white

13.87
#301777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301777
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301777#FFFFFF#000000##FFFFFF
##3017771.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002A75
Tritanopia (blue-blind)
#0B3347
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301777;
/* rgb */ color: rgb(48, 23, 119);
/* oklch */ color: oklch(31.2% 0.150 285.8);
Tailwind
colors: {
  custom: {
    50: '#72589f',
    500: '#301777',
    950: '#000000',
  },
}
SCSS
$custom: #301777;
$custom-light: #72589f;
$custom-dark: #000000;
JSON
{
  "hex": "#301777",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 255.625,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31226,
    "c": 0.14991,
    "h": 285.8
  },
  "luminance": 0.02573
}

Semantic roles & 50–950 ramp

primary
#301777
secondary
#8FAC3E
accent
#EA3DBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #301777

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

Preview Lab → · Contrast checker → · Palette generator →

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