#301C38#301C38

#301C38 is a dark, muted purple. Relative luminance 0.017; OKLCH L 26.6% C 0.057 H 315.8°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#301C38
RGBrgb(48, 28, 56)
HSLhsl(283, 33%, 16%)
HSVhsv(283, 50%, 22%)
CMYKcmyk(14.3%, 50%, 0%, 78%)
CIE-LABlab(14.08, 15.94, -14.36)
CIE-LCHlch(14.08, 21.45, 317.99°)
OKLaboklab(26.58% 0.0408 -0.0397)
OKLCHoklch(26.58% 0.057 315.8)
XYZxyz(2.3479, 1.7445, 3.9536)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C38 #24381C
analogous
#221C38 #301C38 #381C32
triadic
#301C38 #38301C #1C3830
tetradic
#301C38 #38221C #24381C #1C3238
square
#301C38 #38221C #24381C #1C3238
split-complementary
#301C38 #32381C #1C3822
monochromatic
#110A14 #110A14 #301C38 #533061 #76458A

Accessibility & contrast

On white

15.57
#301C38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#301C38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C38
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C38#FFFFFF#000000##FFFFFF
##301C381.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172339
Deuteranopia (green-blind)
#1C2437
Tritanopia (blue-blind)
#302027
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #301c38;
/* rgb */ color: rgb(48, 28, 56);
/* oklch */ color: oklch(26.6% 0.057 315.8);
Tailwind
colors: {
  custom: {
    50: '#69586e',
    500: '#301c38',
    950: '#000000',
  },
}
SCSS
$custom: #301c38;
$custom-light: #69586e;
$custom-dark: #000000;
JSON
{
  "hex": "#301c38",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 56
  },
  "hsl": {
    "h": 282.857,
    "s": 33.333,
    "l": 16.471
  },
  "oklch": {
    "l": 0.26584,
    "c": 0.05691,
    "h": 315.8
  },
  "luminance": 0.01744
}

Semantic roles & 50–950 ramp

primary
#301C38
secondary
#4F6C43
accent
#C95E7D
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060307
muted
#7A787A

Preview Lab

Preview with #301C38

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

Preview Lab → · Contrast checker → · Palette generator →

#301C38 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva