#301140#301140

#301140 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.089 H 312.1°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#301140
RGBrgb(48, 17, 64)
HSLhsl(280, 58%, 16%)
HSVhsv(280, 73%, 25%)
CMYKcmyk(25%, 73.4%, 0%, 74.9%)
CIE-LABlab(11.95, 25.06, -23.40)
CIE-LCHlch(11.95, 34.29, 316.95°)
OKLaboklab(25.19% 0.0596 -0.0659)
OKLCHoklch(25.19% 0.089 312.1)
XYZxyz(2.3446, 1.3995, 4.9961)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301140 #214011
analogous
#181140 #301140 #401138
triadic
#301140 #403011 #114030
tetradic
#301140 #401811 #214011 #113840
square
#301140 #401811 #214011 #113840
split-complementary
#301140 #384011 #114018
monochromatic
#120618 #120618 #301140 #541E70 #792BA1

Accessibility & contrast

On white

16.41
#301140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#301140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301140
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301140#FFFFFF#000000##FFFFFF
##3011401.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E41
Deuteranopia (green-blind)
#0D203F
Tritanopia (blue-blind)
#2E1A26
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #301140;
/* rgb */ color: rgb(48, 17, 64);
/* oklch */ color: oklch(25.2% 0.089 312.1);
Tailwind
colors: {
  custom: {
    50: '#6a5175',
    500: '#301140',
    950: '#000000',
  },
}
SCSS
$custom: #301140;
$custom-light: #6a5175;
$custom-dark: #000000;
JSON
{
  "hex": "#301140",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 64
  },
  "hsl": {
    "h": 279.574,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25186,
    "c": 0.08884,
    "h": 312.1
  },
  "luminance": 0.01399
}

Semantic roles & 50–950 ramp

primary
#301140
secondary
#4B7933
accent
#E1477B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #301140

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

Preview Lab → · Contrast checker → · Palette generator →

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