#301237#301237

#301237 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.7% C 0.076 H 319.7°. Best body text is #FFFFFF at 16.57:1 contrast (WCAG AA passes).

Color values

HEX#301237
RGBrgb(48, 18, 55)
HSLhsl(289, 51%, 14%)
HSVhsv(289, 67%, 22%)
CMYKcmyk(12.7%, 67.3%, 0%, 78.4%)
CIE-LABlab(11.53, 22.18, -17.66)
CIE-LCHlch(11.53, 28.35, 321.47°)
OKLaboklab(24.67% 0.058 -0.0491)
OKLCHoklch(24.67% 0.076 319.7)
XYZxyz(2.1247, 1.3369, 3.7598)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301237 #193712
analogous
#1E1237 #301237 #37122C
triadic
#301237 #373012 #123730
tetradic
#301237 #371E12 #193712 #122C37
square
#301237 #371E12 #193712 #122C37
split-complementary
#301237 #2C3712 #12371E
monochromatic
#140817 #140817 #301237 #582165 #803093

Accessibility & contrast

On white

16.57
#301237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#301237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301237
16.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301237#FFFFFF#000000##FFFFFF
##3012371.0016.571.2716.57
#FFFFFF16.571.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1C38
Deuteranopia (green-blind)
#152036
Tritanopia (blue-blind)
#301822
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #301237;
/* rgb */ color: rgb(48, 18, 55);
/* oklch */ color: oklch(24.7% 0.076 319.7);
Tailwind
colors: {
  custom: {
    50: '#6a526e',
    500: '#301237',
    950: '#000000',
  },
}
SCSS
$custom: #301237;
$custom-light: #6a526e;
$custom-dark: #000000;
JSON
{
  "hex": "#301237",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 288.649,
    "s": 50.685,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24674,
    "c": 0.07599,
    "h": 319.7
  },
  "luminance": 0.01337
}

Semantic roles & 50–950 ramp

primary
#301237
secondary
#407035
accent
#DA4E68
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060207
muted
#7A787A

Preview Lab

Preview with #301237

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

Preview Lab → · Contrast checker → · Palette generator →

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