#301896#301896

#301896 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.186 H 279.3°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#301896
RGBrgb(48, 24, 150)
HSLhsl(251, 72%, 34%)
HSVhsv(251, 84%, 59%)
CMYKcmyk(68%, 84%, 0%, 41.2%)
CIE-LABlab(21.88, 46.78, -63.58)
CIE-LCHlch(21.88, 78.94, 306.34°)
OKLaboklab(34.78% 0.03 -0.1836)
OKLCHoklch(34.78% 0.186 279.3)
XYZxyz(7.0488, 3.4831, 29.1491)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301896 #7E9618
analogous
#183F96 #301896 #6F1896
triadic
#301896 #963018 #189630
tetradic
#301896 #96183F #7E9618 #18966F
square
#301896 #96183F #7E9618 #18966F
split-complementary
#301896 #966F18 #3F9618
monochromatic
#0E072C #1F1061 #301896 #4120CB #6447E2

Accessibility & contrast

On white

12.38
#301896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#301896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301896
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301896#FFFFFF#000000##FFFFFF
##3018961.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003999
Deuteranopia (green-blind)
#002F94
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301896;
/* rgb */ color: rgb(48, 24, 150);
/* oklch */ color: oklch(34.8% 0.186 279.3);
Tailwind
colors: {
  custom: {
    50: '#785ab6',
    500: '#301896',
    950: '#000000',
  },
}
SCSS
$custom: #301896;
$custom-light: #785ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#301896",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 150
  },
  "hsl": {
    "h": 251.429,
    "s": 72.414,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34775,
    "c": 0.18603,
    "h": 279.3
  },
  "luminance": 0.03484
}

Semantic roles & 50–950 ramp

primary
#301896
secondary
#ABC347
accent
#EF39CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301896

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

Preview Lab → · Contrast checker → · Palette generator →

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