#301247#301247

#301247 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.096 H 306.9°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#301247
RGBrgb(48, 18, 71)
HSLhsl(274, 60%, 17%)
HSVhsv(274, 75%, 28%)
CMYKcmyk(32.4%, 74.6%, 0%, 72.2%)
CIE-LABlab(12.71, 26.37, -27.10)
CIE-LCHlch(12.71, 37.81, 314.22°)
OKLaboklab(25.9% 0.0576 -0.0768)
OKLCHoklch(25.9% 0.096 306.9)
XYZxyz(2.5723, 1.5160, 6.1171)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301247 #294712
analogous
#151247 #301247 #471244
triadic
#301247 #473012 #124730
tetradic
#301247 #471512 #294712 #124447
square
#301247 #471512 #294712 #124447
split-complementary
#301247 #444712 #124715
monochromatic
#110618 #110618 #301247 #511E78 #722BA9

Accessibility & contrast

On white

16.11
#301247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301247
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301247#FFFFFF#000000##FFFFFF
##3012471.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002049
Deuteranopia (green-blind)
#062146
Tritanopia (blue-blind)
#2C1D2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #301247;
/* rgb */ color: rgb(48, 18, 71);
/* oklch */ color: oklch(25.9% 0.096 306.9);
Tailwind
colors: {
  custom: {
    50: '#6b527b',
    500: '#301247',
    950: '#000000',
  },
}
SCSS
$custom: #301247;
$custom-light: #6b527b;
$custom-dark: #000000;
JSON
{
  "hex": "#301247",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 71
  },
  "hsl": {
    "h": 273.962,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25904,
    "c": 0.09596,
    "h": 306.9
  },
  "luminance": 0.01516
}

Semantic roles & 50–950 ramp

primary
#301247
secondary
#558035
accent
#E34589
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #301247

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

Preview Lab → · Contrast checker → · Palette generator →

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