#301D77#301D77

#301D77 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.143 H 284.6°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#301D77
RGBrgb(48, 29, 119)
HSLhsl(253, 61%, 29%)
HSVhsv(253, 76%, 47%)
CMYKcmyk(59.7%, 75.6%, 0%, 53.3%)
CIE-LABlab(19.39, 34.66, -48.21)
CIE-LCHlch(19.39, 59.38, 305.71°)
OKLaboklab(32.03% 0.036 -0.1388)
OKLCHoklch(32.03% 0.143 284.6)
XYZxyz(4.9870, 2.8387, 17.7343)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D77 #64771D
analogous
#1D3777 #301D77 #5D1D77
triadic
#301D77 #77301D #1D7730
tetradic
#301D77 #771D37 #64771D #1D775D
square
#301D77 #771D37 #64771D #1D775D
split-complementary
#301D77 #775D1D #37771D
monochromatic
#0A0619 #1C1146 #301D77 #4429A8 #5D3ED0

Accessibility & contrast

On white

13.39
#301D77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#301D77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D77
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D77#FFFFFF#000000##FFFFFF
##301D771.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002C75
Tritanopia (blue-blind)
#0A3648
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301d77;
/* rgb */ color: rgb(48, 29, 119);
/* oklch */ color: oklch(32.0% 0.143 284.6);
Tailwind
colors: {
  custom: {
    50: '#715b9f',
    500: '#301d77',
    950: '#000000',
  },
}
SCSS
$custom: #301d77;
$custom-light: #715b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#301d77",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 119
  },
  "hsl": {
    "h": 252.667,
    "s": 60.811,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32029,
    "c": 0.14343,
    "h": 284.6
  },
  "luminance": 0.02839
}

Semantic roles & 50–950 ramp

primary
#301D77
secondary
#95AB45
accent
#E444C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #301D77

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

Preview Lab → · Contrast checker → · Palette generator →

#301D77 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva