#301338#301338

#301338 is a very dark, moderate purple. Relative luminance 0.014; OKLCH L 24.9% C 0.075 H 318.5°. Best body text is #FFFFFF at 16.46:1 contrast (WCAG AA passes).

Color values

HEX#301338
RGBrgb(48, 19, 56)
HSLhsl(287, 49%, 15%)
HSVhsv(287, 66%, 22%)
CMYKcmyk(14.3%, 66.1%, 0%, 78%)
CIE-LABlab(11.82, 21.82, -17.92)
CIE-LCHlch(11.82, 28.24, 320.61°)
OKLaboklab(24.91% 0.0564 -0.0499)
OKLCHoklch(24.91% 0.075 318.5)
XYZxyz(2.1655, 1.3797, 3.8929)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301338 #1B3813
analogous
#1E1338 #301338 #38132E
triadic
#301338 #383013 #133830
tetradic
#301338 #381E13 #1B3813 #132E38
square
#301338 #381E13 #1B3813 #132E38
split-complementary
#301338 #2E3813 #13381E
monochromatic
#140817 #140817 #301338 #572366 #7E3293

Accessibility & contrast

On white

16.46
#301338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#301338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301338
16.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301338#FFFFFF#000000##FFFFFF
##3013381.0016.461.2816.46
#FFFFFF16.461.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1D39
Deuteranopia (green-blind)
#152037
Tritanopia (blue-blind)
#301923
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #301338;
/* rgb */ color: rgb(48, 19, 56);
/* oklch */ color: oklch(24.9% 0.075 318.5);
Tailwind
colors: {
  custom: {
    50: '#6a526f',
    500: '#301338',
    950: '#000000',
  },
}
SCSS
$custom: #301338;
$custom-light: #6a526f;
$custom-dark: #000000;
JSON
{
  "hex": "#301338",
  "rgb": {
    "r": 48,
    "g": 19,
    "b": 56
  },
  "hsl": {
    "h": 287.027,
    "s": 49.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24908,
    "c": 0.07532,
    "h": 318.5
  },
  "luminance": 0.0138
}

Semantic roles & 50–950 ramp

primary
#301338
secondary
#437037
accent
#D94F6D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #301338

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

Preview Lab → · Contrast checker → · Palette generator →

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