#301549#301549

#301549 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.094 H 304.7°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#301549
RGBrgb(48, 21, 73)
HSLhsl(271, 55%, 18%)
HSVhsv(271, 71%, 29%)
CMYKcmyk(34.2%, 71.2%, 0%, 71.4%)
CIE-LABlab(13.51, 25.18, -27.20)
CIE-LCHlch(13.51, 37.07, 312.79°)
OKLaboklab(26.53% 0.0533 -0.0771)
OKLCHoklch(26.53% 0.094 304.7)
XYZxyz(2.6894, 1.6458, 6.4780)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301549 #2E4915
analogous
#161549 #301549 #491548
triadic
#301549 #493015 #154930
tetradic
#301549 #491615 #2E4915 #154849
square
#301549 #491615 #2E4915 #154849
split-complementary
#301549 #484915 #154916
monochromatic
#100718 #110719 #301549 #4F2379 #6F30A8

Accessibility & contrast

On white

15.80
#301549 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301549
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301549#FFFFFF#000000##FFFFFF
##3015491.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224B
Deuteranopia (green-blind)
#072348
Tritanopia (blue-blind)
#2B202C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #301549;
/* rgb */ color: rgb(48, 21, 73);
/* oklch */ color: oklch(26.5% 0.094 304.7);
Tailwind
colors: {
  custom: {
    50: '#6b547c',
    500: '#301549',
    950: '#000000',
  },
}
SCSS
$custom: #301549;
$custom-light: #6b547c;
$custom-dark: #000000;
JSON
{
  "hex": "#301549",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 73
  },
  "hsl": {
    "h": 271.154,
    "s": 55.319,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26529,
    "c": 0.09372,
    "h": 304.7
  },
  "luminance": 0.01646
}

Semantic roles & 50–950 ramp

primary
#301549
secondary
#5C8139
accent
#DF4991
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #301549

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

Preview Lab → · Contrast checker → · Palette generator →

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