#301A38#301A38

#301A38 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 26.2% C 0.061 H 316.5°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#301A38
RGBrgb(48, 26, 56)
HSLhsl(284, 37%, 16%)
HSVhsv(284, 54%, 22%)
CMYKcmyk(14.3%, 53.6%, 0%, 78%)
CIE-LABlab(13.55, 17.30, -15.20)
CIE-LCHlch(13.55, 23.03, 318.70°)
OKLaboklab(26.18% 0.0444 -0.0421)
OKLCHoklch(26.18% 0.061 316.5)
XYZxyz(2.3020, 1.6528, 3.9384)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A38 #22381A
analogous
#211A38 #301A38 #381A31
triadic
#301A38 #38301A #1A3830
tetradic
#301A38 #38211A #22381A #1A3138
square
#301A38 #38211A #22381A #1A3138
split-complementary
#301A38 #31381A #1A3821
monochromatic
#120A15 #120A15 #301A38 #542D62 #78418C

Accessibility & contrast

On white

15.78
#301A38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#301A38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A38
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A38#FFFFFF#000000##FFFFFF
##301A381.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152139
Deuteranopia (green-blind)
#1B2337
Tritanopia (blue-blind)
#301E26
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #301a38;
/* rgb */ color: rgb(48, 26, 56);
/* oklch */ color: oklch(26.2% 0.061 316.5);
Tailwind
colors: {
  custom: {
    50: '#69576e',
    500: '#301a38',
    950: '#000000',
  },
}
SCSS
$custom: #301a38;
$custom-light: #69576e;
$custom-dark: #000000;
JSON
{
  "hex": "#301a38",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 56
  },
  "hsl": {
    "h": 284,
    "s": 36.585,
    "l": 16.078
  },
  "oklch": {
    "l": 0.26183,
    "c": 0.06118,
    "h": 316.5
  },
  "luminance": 0.01653
}

Semantic roles & 50–950 ramp

primary
#301A38
secondary
#4D6D41
accent
#CD5B79
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060307
muted
#7A787A

Preview Lab

Preview with #301A38

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

Preview Lab → · Contrast checker → · Palette generator →

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