#371248#371248

#371248 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.0% C 0.100 H 313.2°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#371248
RGBrgb(55, 18, 72)
HSLhsl(281, 60%, 18%)
HSVhsv(281, 75%, 28%)
CMYKcmyk(23.6%, 75%, 0%, 71.8%)
CIE-LABlab(13.90, 28.45, -25.82)
CIE-LCHlch(13.90, 38.42, 317.77°)
OKLaboklab(27.02% 0.0683 -0.0727)
OKLCHoklch(27.02% 0.1 313.2)
XYZxyz(2.9613, 1.7128, 6.3042)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371248 #234812
analogous
#1C1248 #371248 #48123E
triadic
#371248 #483712 #124837
tetradic
#371248 #481C12 #234812 #123E48
square
#371248 #481C12 #234812 #123E48
split-complementary
#371248 #3E4812 #12481C
monochromatic
#130618 #130618 #371248 #5C1E79 #822AAA

Accessibility & contrast

On white

15.64
#371248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#371248 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371248
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371248#FFFFFF#000000##FFFFFF
##3712481.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214A
Deuteranopia (green-blind)
#0E2447
Tritanopia (blue-blind)
#351D2B
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #371248;
/* rgb */ color: rgb(55, 18, 72);
/* oklch */ color: oklch(27.0% 0.100 313.2);
Tailwind
colors: {
  custom: {
    50: '#70537b',
    500: '#371248',
    950: '#000000',
  },
}
SCSS
$custom: #371248;
$custom-light: #70537b;
$custom-dark: #000000;
JSON
{
  "hex": "#371248",
  "rgb": {
    "r": 55,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 281.111,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.27021,
    "c": 0.09979,
    "h": 313.2
  },
  "luminance": 0.01713
}

Semantic roles & 50–950 ramp

primary
#371248
secondary
#4D8135
accent
#E34577
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#080209
muted
#7B787B

Preview Lab

Preview with #371248

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

Preview Lab → · Contrast checker → · Palette generator →

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