#301138#301138

#301138 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.6% C 0.079 H 318.9°. Best body text is #FFFFFF at 16.63:1 contrast (WCAG AA passes).

Color values

HEX#301138
RGBrgb(48, 17, 56)
HSLhsl(288, 53%, 14%)
HSVhsv(288, 70%, 22%)
CMYKcmyk(14.3%, 69.6%, 0%, 78%)
CIE-LABlab(11.38, 23.02, -18.62)
CIE-LCHlch(11.38, 29.61, 321.03°)
OKLaboklab(24.58% 0.0596 -0.0519)
OKLCHoklch(24.58% 0.079 318.9)
XYZxyz(2.1331, 1.3149, 3.8821)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301138 #193811
analogous
#1D1138 #301138 #38112D
triadic
#301138 #383011 #113830
tetradic
#301138 #381D11 #193811 #112D38
square
#301138 #381D11 #193811 #112D38
split-complementary
#301138 #2D3811 #11381D
monochromatic
#140717 #140717 #301138 #581F67 #802E96

Accessibility & contrast

On white

16.63
#301138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#301138 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301138
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301138#FFFFFF#000000##FFFFFF
##3011381.0016.631.2616.63
#FFFFFF16.631.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081C39
Deuteranopia (green-blind)
#131F37
Tritanopia (blue-blind)
#301722
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #301138;
/* rgb */ color: rgb(48, 17, 56);
/* oklch */ color: oklch(24.6% 0.079 318.9);
Tailwind
colors: {
  custom: {
    50: '#6a516f',
    500: '#301138',
    950: '#000000',
  },
}
SCSS
$custom: #301138;
$custom-light: #6a516f;
$custom-dark: #000000;
JSON
{
  "hex": "#301138",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 56
  },
  "hsl": {
    "h": 287.692,
    "s": 53.425,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24584,
    "c": 0.07906,
    "h": 318.9
  },
  "luminance": 0.01315
}

Semantic roles & 50–950 ramp

primary
#301138
secondary
#407134
accent
#DD4B69
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #301138

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

Preview Lab → · Contrast checker → · Palette generator →

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