#381237#381237

#381237 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.0% C 0.081 H 328.6°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#381237
RGBrgb(56, 18, 55)
HSLhsl(302, 51%, 15%)
HSVhsv(302, 68%, 22%)
CMYKcmyk(0%, 67.9%, 1.8%, 78%)
CIE-LABlab(12.92, 24.77, -15.38)
CIE-LCHlch(12.92, 29.16, 328.17°)
OKLaboklab(25.97% 0.0694 -0.0423)
OKLCHoklch(25.97% 0.081 328.6)
XYZxyz(2.5368, 1.5494, 3.7791)
Luminance0.0155 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381237 #123813
analogous
#261238 #381237 #381224
triadic
#381237 #373812 #123738
tetradic
#381237 #382612 #123813 #122438
square
#381237 #382612 #123813 #122438
split-complementary
#381237 #243812 #123826
monochromatic
#170717 #170717 #381237 #662164 #953092

Accessibility & contrast

On white

16.03
#381237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#381237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381237
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381237#FFFFFF#000000##FFFFFF
##3812371.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1E38
Deuteranopia (green-blind)
#1B2336
Tritanopia (blue-blind)
#3A1622
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #381237;
/* rgb */ color: rgb(56, 18, 55);
/* oklch */ color: oklch(26.0% 0.081 328.6);
Tailwind
colors: {
  custom: {
    50: '#70536e',
    500: '#381237',
    950: '#000000',
  },
}
SCSS
$custom: #381237;
$custom-light: #70536e;
$custom-dark: #000000;
JSON
{
  "hex": "#381237",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 301.579,
    "s": 51.351,
    "l": 14.51
  },
  "oklch": {
    "l": 0.25973,
    "c": 0.08131,
    "h": 328.6
  },
  "luminance": 0.01549
}

Semantic roles & 50–950 ramp

primary
#381237
secondary
#357137
accent
#DB514D
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#080207
muted
#7B787A

Preview Lab

Preview with #381237

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

Preview Lab → · Contrast checker → · Palette generator →

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