#301771#301771

#301771 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.142 H 287.4°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#301771
RGBrgb(48, 23, 113)
HSLhsl(257, 66%, 27%)
HSVhsv(257, 80%, 44%)
CMYKcmyk(57.5%, 79.6%, 0%, 55.7%)
CIE-LABlab(17.61, 36.06, -47.26)
CIE-LCHlch(17.61, 59.45, 307.35°)
OKLaboklab(30.6% 0.0426 -0.136)
OKLCHoklch(30.6% 0.142 287.4)
XYZxyz(4.5051, 2.4332, 15.8519)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301771 #587117
analogous
#172B71 #301771 #5D1771
triadic
#301771 #713017 #177130
tetradic
#301771 #71172B #587117 #17715D
square
#301771 #71172B #587117 #17715D
split-complementary
#301771 #715D17 #2B7117
monochromatic
#0B0519 #1A0D3E #301771 #4621A4 #5C2ED4

Accessibility & contrast

On white

14.13
#301771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#301771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301771
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301771#FFFFFF#000000##FFFFFF
##3017711.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#143043
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #301771;
/* rgb */ color: rgb(48, 23, 113);
/* oklch */ color: oklch(30.6% 0.142 287.4);
Tailwind
colors: {
  custom: {
    50: '#71579b',
    500: '#301771',
    950: '#000000',
  },
}
SCSS
$custom: #301771;
$custom-light: #71579b;
$custom-dark: #000000;
JSON
{
  "hex": "#301771",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 256.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30595,
    "c": 0.14249,
    "h": 287.4
  },
  "luminance": 0.02433
}

Semantic roles & 50–950 ramp

primary
#301771
secondary
#89A73D
accent
#E93FBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301771

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

Preview Lab → · Contrast checker → · Palette generator →

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