#301885#301885

#301885 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.166 H 282.4°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#301885
RGBrgb(48, 24, 133)
HSLhsl(253, 69%, 31%)
HSVhsv(253, 82%, 52%)
CMYKcmyk(63.9%, 82%, 0%, 47.8%)
CIE-LABlab(19.94, 41.67, -56.19)
CIE-LCHlch(19.94, 69.96, 306.56°)
OKLaboklab(32.86% 0.0356 -0.1621)
OKLCHoklch(32.86% 0.166 282.4)
XYZxyz(5.7779, 2.9747, 22.4555)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301885 #6D8518
analogous
#183685 #301885 #661885
triadic
#301885 #853018 #188530
tetradic
#301885 #851836 #6D8518 #188566
square
#301885 #851836 #6D8518 #188566
split-complementary
#301885 #856618 #368518
monochromatic
#0B051D #1D0F51 #301885 #4321B9 #5F3CDC

Accessibility & contrast

On white

13.17
#301885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#301885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301885
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301885#FFFFFF#000000##FFFFFF
##3018851.0013.171.6013.17
#FFFFFF13.171.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002C83
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301885;
/* rgb */ color: rgb(48, 24, 133);
/* oklch */ color: oklch(32.9% 0.166 282.4);
Tailwind
colors: {
  custom: {
    50: '#7559aa',
    500: '#301885',
    950: '#000000',
  },
}
SCSS
$custom: #301885;
$custom-light: #7559aa;
$custom-dark: #000000;
JSON
{
  "hex": "#301885",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 253.211,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32863,
    "c": 0.16595,
    "h": 282.4
  },
  "luminance": 0.02975
}

Semantic roles & 50–950 ramp

primary
#301885
secondary
#9EB940
accent
#EC3CC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301885

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

Preview Lab → · Contrast checker → · Palette generator →

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