#301882#301882

#301882 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.162 H 283.0°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#301882
RGBrgb(48, 24, 130)
HSLhsl(254, 69%, 30%)
HSVhsv(254, 82%, 51%)
CMYKcmyk(63.1%, 81.5%, 0%, 49%)
CIE-LABlab(19.61, 40.76, -54.85)
CIE-LCHlch(19.61, 68.34, 306.62°)
OKLaboklab(32.53% 0.0366 -0.1582)
OKLCHoklch(32.53% 0.162 283)
XYZxyz(5.5736, 2.8930, 21.3795)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301882 #6A8218
analogous
#183582 #301882 #651882
triadic
#301882 #823018 #188230
tetradic
#301882 #821835 #6A8218 #188265
square
#301882 #821835 #6A8218 #188265
split-complementary
#301882 #826518 #358218
monochromatic
#0A051B #1D0E4E #301882 #4322B6 #5E3ADB

Accessibility & contrast

On white

13.30
#301882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#301882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301882
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301882#FFFFFF#000000##FFFFFF
##3018821.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301882;
/* rgb */ color: rgb(48, 24, 130);
/* oklch */ color: oklch(32.5% 0.162 283.0);
Tailwind
colors: {
  custom: {
    50: '#7459a7',
    500: '#301882',
    950: '#000000',
  },
}
SCSS
$custom: #301882;
$custom-light: #7459a7;
$custom-dark: #000000;
JSON
{
  "hex": "#301882",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 253.585,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32534,
    "c": 0.16234,
    "h": 283
  },
  "luminance": 0.02893
}

Semantic roles & 50–950 ramp

primary
#301882
secondary
#9BB640
accent
#EC3CC4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301882

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

Preview Lab → · Contrast checker → · Palette generator →

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