#301973#301973

#301973 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.143 H 286.4°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#301973
RGBrgb(48, 25, 115)
HSLhsl(255, 64%, 27%)
HSVhsv(255, 78%, 45%)
CMYKcmyk(58.3%, 78.3%, 0%, 54.9%)
CIE-LABlab(18.19, 35.62, -47.60)
CIE-LCHlch(18.19, 59.45, 306.81°)
OKLaboklab(31.06% 0.0404 -0.137)
OKLCHoklch(31.06% 0.143 286.4)
XYZxyz(4.6601, 2.5612, 16.4651)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301973 #5C7319
analogous
#192F73 #301973 #5D1973
triadic
#301973 #733019 #197330
tetradic
#301973 #73192F #5C7319 #19735D
square
#301973 #73192F #5C7319 #19735D
split-complementary
#301973 #735D19 #2F7319
monochromatic
#0A0519 #1B0E41 #301973 #4524A5 #5C34D3

Accessibility & contrast

On white

13.89
#301973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301973
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301973#FFFFFF#000000##FFFFFF
##3019731.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#113245
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #301973;
/* rgb */ color: rgb(48, 25, 115);
/* oklch */ color: oklch(31.1% 0.143 286.4);
Tailwind
colors: {
  custom: {
    50: '#71599c',
    500: '#301973',
    950: '#000000',
  },
}
SCSS
$custom: #301973;
$custom-light: #71599c;
$custom-dark: #000000;
JSON
{
  "hex": "#301973",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 255.333,
    "s": 64.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31064,
    "c": 0.14283,
    "h": 286.4
  },
  "luminance": 0.02561
}

Semantic roles & 50–950 ramp

primary
#301973
secondary
#8DA840
accent
#E741BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301973

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

Preview Lab → · Contrast checker → · Palette generator →

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