#301893#301893

#301893 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.183 H 279.8°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#301893
RGBrgb(48, 24, 147)
HSLhsl(252, 72%, 34%)
HSVhsv(252, 84%, 58%)
CMYKcmyk(67.3%, 83.7%, 0%, 42.4%)
CIE-LABlab(21.53, 45.89, -62.31)
CIE-LCHlch(21.53, 77.38, 306.37°)
OKLaboklab(34.43% 0.031 -0.1799)
OKLCHoklch(34.43% 0.183 279.8)
XYZxyz(6.8103, 3.3877, 27.8931)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301893 #7B9318
analogous
#183D93 #301893 #6D1893
triadic
#301893 #933018 #189330
tetradic
#301893 #93183D #7B9318 #18936D
square
#301893 #93183D #7B9318 #18936D
split-complementary
#301893 #936D18 #3D9318
monochromatic
#0E072A #1F0F5E #301893 #4121C8 #6345E1

Accessibility & contrast

On white

12.52
#301893 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#301893 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301893
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301893#FFFFFF#000000##FFFFFF
##3018931.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003896
Deuteranopia (green-blind)
#002F91
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301893;
/* rgb */ color: rgb(48, 24, 147);
/* oklch */ color: oklch(34.4% 0.183 279.8);
Tailwind
colors: {
  custom: {
    50: '#785ab4',
    500: '#301893',
    950: '#000000',
  },
}
SCSS
$custom: #301893;
$custom-light: #785ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#301893",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 147
  },
  "hsl": {
    "h": 251.707,
    "s": 71.93,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34433,
    "c": 0.18253,
    "h": 279.8
  },
  "luminance": 0.03388
}

Semantic roles & 50–950 ramp

primary
#301893
secondary
#A9C245
accent
#EF39CB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301893

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

Preview Lab → · Contrast checker → · Palette generator →

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