#301548#301548

#301548 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.092 H 305.3°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#301548
RGBrgb(48, 21, 72)
HSLhsl(272, 55%, 18%)
HSVhsv(272, 71%, 28%)
CMYKcmyk(33.3%, 70.8%, 0%, 71.8%)
CIE-LABlab(13.43, 24.90, -26.64)
CIE-LCHlch(13.43, 36.46, 313.06°)
OKLaboklab(26.45% 0.0534 -0.0754)
OKLCHoklch(26.45% 0.092 305.3)
XYZxyz(2.6565, 1.6326, 6.3048)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301548 #2D4815
analogous
#161548 #301548 #481546
triadic
#301548 #483015 #154830
tetradic
#301548 #481615 #2D4815 #154648
square
#301548 #481615 #2D4815 #154648
split-complementary
#301548 #464815 #154816
monochromatic
#100718 #100719 #301548 #502377 #6F31A7

Accessibility & contrast

On white

15.83
#301548 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#301548 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301548
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301548#FFFFFF#000000##FFFFFF
##3015481.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224A
Deuteranopia (green-blind)
#082247
Tritanopia (blue-blind)
#2C202C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #301548;
/* rgb */ color: rgb(48, 21, 72);
/* oklch */ color: oklch(26.4% 0.092 305.3);
Tailwind
colors: {
  custom: {
    50: '#6b547b',
    500: '#301548',
    950: '#000000',
  },
}
SCSS
$custom: #301548;
$custom-light: #6b547b;
$custom-dark: #000000;
JSON
{
  "hex": "#301548",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 72
  },
  "hsl": {
    "h": 271.765,
    "s": 54.839,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26447,
    "c": 0.09241,
    "h": 305.3
  },
  "luminance": 0.01633
}

Semantic roles & 50–950 ramp

primary
#301548
secondary
#5A8039
accent
#DE4A90
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #301548

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

Preview Lab → · Contrast checker → · Palette generator →

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