#301880#301880

#301880 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.160 H 283.5°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#301880
RGBrgb(48, 24, 128)
HSLhsl(254, 68%, 30%)
HSVhsv(254, 81%, 50%)
CMYKcmyk(62.5%, 81.3%, 0%, 49.8%)
CIE-LABlab(19.39, 40.15, -53.94)
CIE-LCHlch(19.39, 67.25, 306.66°)
OKLaboklab(32.32% 0.0372 -0.1555)
OKLCHoklch(32.32% 0.16 283.5)
XYZxyz(5.4406, 2.8398, 20.6793)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301880 #688018
analogous
#183480 #301880 #641880
triadic
#301880 #803018 #188030
tetradic
#301880 #801834 #688018 #188064
square
#301880 #801834 #688018 #188064
split-complementary
#301880 #806418 #348018
monochromatic
#0A051A #1D0E4C #301880 #4322B4 #5E39DA

Accessibility & contrast

On white

13.39
#301880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#301880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301880
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301880#FFFFFF#000000##FFFFFF
##3018801.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301880;
/* rgb */ color: rgb(48, 24, 128);
/* oklch */ color: oklch(32.3% 0.160 283.5);
Tailwind
colors: {
  custom: {
    50: '#7459a6',
    500: '#301880',
    950: '#000000',
  },
}
SCSS
$custom: #301880;
$custom-light: #7459a6;
$custom-dark: #000000;
JSON
{
  "hex": "#301880",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 253.846,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32316,
    "c": 0.15992,
    "h": 283.5
  },
  "luminance": 0.0284
}

Semantic roles & 50–950 ramp

primary
#301880
secondary
#99B440
accent
#EB3DC3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301880

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

Preview Lab → · Contrast checker → · Palette generator →

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