#301773#301773

#301773 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.145 H 286.8°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#301773
RGBrgb(48, 23, 115)
HSLhsl(256, 67%, 27%)
HSVhsv(256, 80%, 45%)
CMYKcmyk(58.3%, 80%, 0%, 54.9%)
CIE-LABlab(17.82, 36.68, -48.21)
CIE-LCHlch(17.82, 60.57, 307.26°)
OKLaboklab(30.8% 0.042 -0.1388)
OKLCHoklch(30.8% 0.145 286.8)
XYZxyz(4.6189, 2.4787, 16.4514)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301773 #5A7317
analogous
#172C73 #301773 #5E1773
triadic
#301773 #733017 #177330
tetradic
#301773 #73172C #5A7317 #17735E
square
#301773 #73172C #5A7317 #17735E
split-complementary
#301773 #735E17 #2C7317
monochromatic
#0B051A #1B0D40 #301773 #4521A6 #5C2FD5

Accessibility & contrast

On white

14.04
#301773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#301773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301773
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301773#FFFFFF#000000##FFFFFF
##3017731.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#113144
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #301773;
/* rgb */ color: rgb(48, 23, 115);
/* oklch */ color: oklch(30.8% 0.145 286.8);
Tailwind
colors: {
  custom: {
    50: '#71579c',
    500: '#301773',
    950: '#000000',
  },
}
SCSS
$custom: #301773;
$custom-light: #71579c;
$custom-dark: #000000;
JSON
{
  "hex": "#301773",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 256.304,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30804,
    "c": 0.14498,
    "h": 286.8
  },
  "luminance": 0.02479
}

Semantic roles & 50–950 ramp

primary
#301773
secondary
#8BA93D
accent
#EA3EBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301773

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

Preview Lab → · Contrast checker → · Palette generator →

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