#301160#301160

#301160 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.128 H 294.4°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#301160
RGBrgb(48, 17, 96)
HSLhsl(264, 70%, 22%)
HSVhsv(264, 82%, 38%)
CMYKcmyk(50%, 82.3%, 0%, 62.4%)
CIE-LABlab(14.81, 34.02, -40.70)
CIE-LCHlch(14.81, 53.05, 309.89°)
OKLaboklab(28.1% 0.0529 -0.1167)
OKLCHoklch(28.1% 0.128 294.4)
XYZxyz(3.5301, 1.8737, 11.2397)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301160 #416011
analogous
#111A60 #301160 #581160
triadic
#301160 #603011 #116030
tetradic
#301160 #60111A #416011 #116058
square
#301160 #60111A #416011 #116058
split-complementary
#301160 #605811 #1A6011
monochromatic
#0D051A #16082C #301160 #4A1A94 #6423C8

Accessibility & contrast

On white

15.27
#301160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#301160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301160
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301160#FFFFFF#000000##FFFFFF
##3011601.0015.271.3715.27
#FFFFFF15.271.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002662
Deuteranopia (green-blind)
#00245F
Tritanopia (blue-blind)
#222738
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301160;
/* rgb */ color: rgb(48, 17, 96);
/* oklch */ color: oklch(28.1% 0.128 294.4);
Tailwind
colors: {
  custom: {
    50: '#6e538e',
    500: '#301160',
    950: '#000000',
  },
}
SCSS
$custom: #301160;
$custom-light: #6e538e;
$custom-dark: #000000;
JSON
{
  "hex": "#301160",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 96
  },
  "hsl": {
    "h": 263.544,
    "s": 69.912,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28103,
    "c": 0.12814,
    "h": 294.4
  },
  "luminance": 0.01874
}

Semantic roles & 50–950 ramp

primary
#301160
secondary
#719934
accent
#ED3BA7
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #301160

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

Preview Lab → · Contrast checker → · Palette generator →

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