#301048#301048

#301048 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.100 H 306.8°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#301048
RGBrgb(48, 16, 72)
HSLhsl(274, 64%, 17%)
HSVhsv(274, 78%, 28%)
CMYKcmyk(33.3%, 77.8%, 0%, 71.8%)
CIE-LABlab(12.40, 27.75, -28.30)
CIE-LCHlch(12.40, 39.64, 314.43°)
OKLaboklab(25.71% 0.06 -0.0803)
OKLCHoklch(25.71% 0.1 306.8)
XYZxyz(2.5737, 1.4669, 6.2772)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301048 #284810
analogous
#141048 #301048 #481044
triadic
#301048 #483010 #104830
tetradic
#301048 #481410 #284810 #104448
square
#301048 #481410 #284810 #104448
split-complementary
#301048 #444810 #104814
monochromatic
#110619 #110619 #301048 #511B7A #7326AC

Accessibility & contrast

On white

16.24
#301048 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301048
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301048#FFFFFF#000000##FFFFFF
##3010481.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4A
Deuteranopia (green-blind)
#022147
Tritanopia (blue-blind)
#2C1D2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #301048;
/* rgb */ color: rgb(48, 16, 72);
/* oklch */ color: oklch(25.7% 0.100 306.8);
Tailwind
colors: {
  custom: {
    50: '#6b517b',
    500: '#301048',
    950: '#000000',
  },
}
SCSS
$custom: #301048;
$custom-light: #6b517b;
$custom-dark: #000000;
JSON
{
  "hex": "#301048",
  "rgb": {
    "r": 48,
    "g": 16,
    "b": 72
  },
  "hsl": {
    "h": 274.286,
    "s": 63.636,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25706,
    "c": 0.10024,
    "h": 306.8
  },
  "luminance": 0.01467
}

Semantic roles & 50–950 ramp

primary
#301048
secondary
#548232
accent
#E74188
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #301048

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

Preview Lab → · Contrast checker → · Palette generator →

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