#301873#301873

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

Color values

HEX#301873
RGBrgb(48, 24, 115)
HSLhsl(256, 65%, 27%)
HSVhsv(256, 79%, 45%)
CMYKcmyk(58.3%, 79.1%, 0%, 54.9%)
CIE-LABlab(18.01, 36.15, -47.91)
CIE-LCHlch(18.01, 60.02, 307.04°)
OKLaboklab(30.93% 0.0412 -0.1379)
OKLCHoklch(30.93% 0.144 286.6)
XYZxyz(4.6391, 2.5192, 16.4581)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301873 #5B7318
analogous
#182E73 #301873 #5E1873
triadic
#301873 #733018 #187330
tetradic
#301873 #73182E #5B7318 #18735E
square
#301873 #73182E #5B7318 #18735E
split-complementary
#301873 #735E18 #2E7318
monochromatic
#0B0519 #1B0D40 #301873 #4523A6 #5C31D4

Accessibility & contrast

On white

13.96
#301873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301873
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301873#FFFFFF#000000##FFFFFF
##3018731.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301873;
/* rgb */ color: rgb(48, 24, 115);
/* oklch */ color: oklch(30.9% 0.144 286.6);
Tailwind
colors: {
  custom: {
    50: '#71589c',
    500: '#301873',
    950: '#000000',
  },
}
SCSS
$custom: #301873;
$custom-light: #71589c;
$custom-dark: #000000;
JSON
{
  "hex": "#301873",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 115
  },
  "hsl": {
    "h": 255.824,
    "s": 65.468,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30932,
    "c": 0.14392,
    "h": 286.6
  },
  "luminance": 0.02519
}

Semantic roles & 50–950 ramp

primary
#301873
secondary
#8CA83F
accent
#E83FBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301873

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

Preview Lab → · Contrast checker → · Palette generator →

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