#301984#301984

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

Color values

HEX#301984
RGBrgb(48, 25, 132)
HSLhsl(253, 68%, 31%)
HSVhsv(253, 81%, 52%)
CMYKcmyk(63.6%, 81.1%, 0%, 48.2%)
CIE-LABlab(20.00, 40.88, -55.47)
CIE-LCHlch(20.00, 68.90, 306.39°)
OKLaboklab(32.87% 0.0353 -0.16)
OKLCHoklch(32.87% 0.164 282.4)
XYZxyz(5.7301, 2.9892, 22.1003)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301984 #6D8419
analogous
#193784 #301984 #651984
triadic
#301984 #843019 #198430
tetradic
#301984 #841937 #6D8419 #198465
square
#301984 #841937 #6D8419 #198465
split-complementary
#301984 #846519 #378419
monochromatic
#0B061D #1D0F51 #301984 #4323B7 #5F3DDA

Accessibility & contrast

On white

13.14
#301984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301984
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301984#FFFFFF#000000##FFFFFF
##3019841.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301984;
/* rgb */ color: rgb(48, 25, 132);
/* oklch */ color: oklch(32.9% 0.164 282.4);
Tailwind
colors: {
  custom: {
    50: '#745aa9',
    500: '#301984',
    950: '#000000',
  },
}
SCSS
$custom: #301984;
$custom-light: #745aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#301984",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 132
  },
  "hsl": {
    "h": 252.897,
    "s": 68.153,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32871,
    "c": 0.16384,
    "h": 282.4
  },
  "luminance": 0.0299
}

Semantic roles & 50–950 ramp

primary
#301984
secondary
#9EB841
accent
#EB3DC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301984

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

Preview Lab → · Contrast checker → · Palette generator →

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