#301772#301772

#301772 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.144 H 287.1°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#301772
RGBrgb(48, 23, 114)
HSLhsl(256, 66%, 27%)
HSVhsv(256, 80%, 45%)
CMYKcmyk(57.9%, 79.8%, 0%, 55.3%)
CIE-LABlab(17.72, 36.37, -47.73)
CIE-LCHlch(17.72, 60.01, 307.30°)
OKLaboklab(30.7% 0.0423 -0.1374)
OKLCHoklch(30.7% 0.144 287.1)
XYZxyz(4.5617, 2.4558, 16.1500)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301772 #597217
analogous
#172B72 #301772 #5E1772
triadic
#301772 #723017 #177230
tetradic
#301772 #72172B #597217 #17725E
square
#301772 #72172B #597217 #17725E
split-complementary
#301772 #725E17 #2B7217
monochromatic
#0B0519 #1B0D3F #301772 #4521A5 #5C2ED5

Accessibility & contrast

On white

14.08
#301772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301772
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301772#FFFFFF#000000##FFFFFF
##3017721.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#133144
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #301772;
/* rgb */ color: rgb(48, 23, 114);
/* oklch */ color: oklch(30.7% 0.144 287.1);
Tailwind
colors: {
  custom: {
    50: '#71579b',
    500: '#301772',
    950: '#000000',
  },
}
SCSS
$custom: #301772;
$custom-light: #71579b;
$custom-dark: #000000;
JSON
{
  "hex": "#301772",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 256.484,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30699,
    "c": 0.14374,
    "h": 287.1
  },
  "luminance": 0.02456
}

Semantic roles & 50–950 ramp

primary
#301772
secondary
#8AA83D
accent
#E93EBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301772

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

Preview Lab → · Contrast checker → · Palette generator →

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