#301180#301180

#301180 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.166 H 284.4°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#301180
RGBrgb(48, 17, 128)
HSLhsl(257, 77%, 28%)
HSVhsv(257, 87%, 50%)
CMYKcmyk(62.5%, 86.7%, 0%, 49.8%)
CIE-LABlab(18.31, 43.31, -55.73)
CIE-LCHlch(18.31, 70.58, 307.85°)
OKLaboklab(31.57% 0.0412 -0.1606)
OKLCHoklch(31.57% 0.166 284.4)
XYZxyz(5.3145, 2.5874, 20.6373)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301180 #618011
analogous
#112980 #301180 #671180
triadic
#301180 #803011 #118030
tetradic
#301180 #801129 #618011 #118067
square
#301180 #801129 #618011 #118067
split-complementary
#301180 #806711 #298011
monochromatic
#0A041B #1C0A4A #301180 #4418B6 #5D29E3

Accessibility & contrast

On white

13.84
#301180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#301180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301180
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301180#FFFFFF#000000##FFFFFF
##3011801.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#00344B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301180;
/* rgb */ color: rgb(48, 17, 128);
/* oklch */ color: oklch(31.6% 0.166 284.4);
Tailwind
colors: {
  custom: {
    50: '#7455a6',
    500: '#301180',
    950: '#000000',
  },
}
SCSS
$custom: #301180;
$custom-light: #7455a6;
$custom-dark: #000000;
JSON
{
  "hex": "#301180",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 256.757,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31569,
    "c": 0.16585,
    "h": 284.4
  },
  "luminance": 0.02588
}

Semantic roles & 50–950 ramp

primary
#301180
secondary
#92B637
accent
#F335BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #301180

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

Preview Lab → · Contrast checker → · Palette generator →

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