#301147#301147

#301147 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.098 H 307.1°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#301147
RGBrgb(48, 17, 71)
HSLhsl(274, 61%, 17%)
HSVhsv(274, 76%, 28%)
CMYKcmyk(32.4%, 76.1%, 0%, 72.2%)
CIE-LABlab(12.51, 26.93, -27.43)
CIE-LCHlch(12.51, 38.44, 314.48°)
OKLaboklab(25.76% 0.0589 -0.0777)
OKLCHoklch(25.76% 0.098 307.1)
XYZxyz(2.5565, 1.4842, 6.1118)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301147 #284711
analogous
#151147 #301147 #471143
triadic
#301147 #473011 #114730
tetradic
#301147 #471511 #284711 #114347
square
#301147 #471511 #284711 #114347
split-complementary
#301147 #434711 #114715
monochromatic
#110619 #110619 #301147 #511D78 #7329AA

Accessibility & contrast

On white

16.19
#301147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#301147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301147
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301147#FFFFFF#000000##FFFFFF
##3011471.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F49
Deuteranopia (green-blind)
#042146
Tritanopia (blue-blind)
#2C1D2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #301147;
/* rgb */ color: rgb(48, 17, 71);
/* oklch */ color: oklch(25.8% 0.098 307.1);
Tailwind
colors: {
  custom: {
    50: '#6b527b',
    500: '#301147',
    950: '#000000',
  },
}
SCSS
$custom: #301147;
$custom-light: #6b527b;
$custom-dark: #000000;
JSON
{
  "hex": "#301147",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 274.444,
    "s": 61.364,
    "l": 17.255
  },
  "oklch": {
    "l": 0.2576,
    "c": 0.0975,
    "h": 307.1
  },
  "luminance": 0.01484
}

Semantic roles & 50–950 ramp

primary
#301147
secondary
#548133
accent
#E44388
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #301147

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

Preview Lab → · Contrast checker → · Palette generator →

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