#301E38#301E38

#301E38 is a dark, muted purple. Relative luminance 0.018; OKLCH L 27.0% C 0.053 H 314.9°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#301E38
RGBrgb(48, 30, 56)
HSLhsl(282, 30%, 17%)
HSVhsv(282, 46%, 22%)
CMYKcmyk(14.3%, 46.4%, 0%, 78%)
CIE-LABlab(14.64, 14.56, -13.50)
CIE-LCHlch(14.64, 19.86, 317.18°)
OKLaboklab(27% 0.0371 -0.0372)
OKLCHoklch(27% 0.053 314.9)
XYZxyz(2.3969, 1.8425, 3.9700)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E38 #26381E
analogous
#231E38 #301E38 #381E33
triadic
#301E38 #38301E #1E3830
tetradic
#301E38 #38231E #26381E #1E3338
square
#301E38 #38231E #26381E #1E3338
split-complementary
#301E38 #33381E #1E3823
monochromatic
#110B14 #110B14 #301E38 #523360 #744988

Accessibility & contrast

On white

15.35
#301E38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#301E38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E38
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E38#FFFFFF#000000##FFFFFF
##301E381.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2439
Deuteranopia (green-blind)
#1E2537
Tritanopia (blue-blind)
#302228
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301e38;
/* rgb */ color: rgb(48, 30, 56);
/* oklch */ color: oklch(27.0% 0.053 314.9);
Tailwind
colors: {
  custom: {
    50: '#695a6e',
    500: '#301e38',
    950: '#000000',
  },
}
SCSS
$custom: #301e38;
$custom-light: #695a6e;
$custom-dark: #000000;
JSON
{
  "hex": "#301e38",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 56
  },
  "hsl": {
    "h": 281.538,
    "s": 30.233,
    "l": 16.863
  },
  "oklch": {
    "l": 0.27,
    "c": 0.05257,
    "h": 314.9
  },
  "luminance": 0.01842
}

Semantic roles & 50–950 ramp

primary
#301E38
secondary
#526C46
accent
#C66180
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060307
muted
#7A787A

Preview Lab

Preview with #301E38

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

Preview Lab → · Contrast checker → · Palette generator →

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