#301982#301982

#301982 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.161 H 282.9°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#301982
RGBrgb(48, 25, 130)
HSLhsl(253, 68%, 30%)
HSVhsv(253, 81%, 51%)
CMYKcmyk(63.1%, 80.8%, 0%, 49%)
CIE-LABlab(19.78, 40.27, -54.57)
CIE-LCHlch(19.78, 67.81, 306.42°)
OKLaboklab(32.65% 0.0359 -0.1574)
OKLCHoklch(32.65% 0.161 282.9)
XYZxyz(5.5946, 2.9350, 21.3865)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301982 #6B8219
analogous
#193682 #301982 #641982
triadic
#301982 #823019 #198230
tetradic
#301982 #821936 #6B8219 #198264
square
#301982 #821936 #6B8219 #198264
split-complementary
#301982 #826419 #368219
monochromatic
#0A051B #1D0F4F #301982 #4323B5 #5E3CD9

Accessibility & contrast

On white

13.23
#301982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#301982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301982
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301982#FFFFFF#000000##FFFFFF
##3019821.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002C80
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301982;
/* rgb */ color: rgb(48, 25, 130);
/* oklch */ color: oklch(32.7% 0.161 282.9);
Tailwind
colors: {
  custom: {
    50: '#7459a7',
    500: '#301982',
    950: '#000000',
  },
}
SCSS
$custom: #301982;
$custom-light: #7459a7;
$custom-dark: #000000;
JSON
{
  "hex": "#301982",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 253.143,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32653,
    "c": 0.16141,
    "h": 282.9
  },
  "luminance": 0.02935
}

Semantic roles & 50–950 ramp

primary
#301982
secondary
#9CB641
accent
#EB3DC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301982

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

Preview Lab → · Contrast checker → · Palette generator →

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