#301047#301047

#301047 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.099 H 307.4°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#301047
RGBrgb(48, 16, 71)
HSLhsl(275, 63%, 17%)
HSVhsv(275, 77%, 28%)
CMYKcmyk(32.4%, 77.5%, 0%, 72.2%)
CIE-LABlab(12.31, 27.48, -27.74)
CIE-LCHlch(12.31, 39.05, 314.73°)
OKLaboklab(25.62% 0.0601 -0.0787)
OKLCHoklch(25.62% 0.099 307.4)
XYZxyz(2.5413, 1.4539, 6.1068)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301047 #274710
analogous
#151047 #301047 #471043
triadic
#301047 #473010 #104730
tetradic
#301047 #471510 #274710 #104347
square
#301047 #471510 #274710 #104347
split-complementary
#301047 #434710 #104715
monochromatic
#110619 #110619 #301047 #521B79 #7427AB

Accessibility & contrast

On white

16.27
#301047 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#301047 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301047
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301047#FFFFFF#000000##FFFFFF
##3010471.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F49
Deuteranopia (green-blind)
#032046
Tritanopia (blue-blind)
#2C1C2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #301047;
/* rgb */ color: rgb(48, 16, 71);
/* oklch */ color: oklch(25.6% 0.099 307.4);
Tailwind
colors: {
  custom: {
    50: '#6b517b',
    500: '#301047',
    950: '#000000',
  },
}
SCSS
$custom: #301047;
$custom-light: #6b517b;
$custom-dark: #000000;
JSON
{
  "hex": "#301047",
  "rgb": {
    "r": 48,
    "g": 16,
    "b": 71
  },
  "hsl": {
    "h": 274.909,
    "s": 63.218,
    "l": 17.059
  },
  "oklch": {
    "l": 0.2562,
    "c": 0.09902,
    "h": 307.4
  },
  "luminance": 0.01454
}

Semantic roles & 50–950 ramp

primary
#301047
secondary
#538132
accent
#E64286
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #301047

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

Preview Lab → · Contrast checker → · Palette generator →

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