#38104B#38104B

#38104B is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.2% C 0.107 H 312.5°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#38104B
RGBrgb(56, 16, 75)
HSLhsl(281, 65%, 18%)
HSVhsv(281, 79%, 29%)
CMYKcmyk(25.3%, 78.7%, 0%, 70.6%)
CIE-LABlab(13.94, 30.46, -27.82)
CIE-LCHlch(13.94, 41.25, 317.59°)
OKLaboklab(27.16% 0.072 -0.0786)
OKLCHoklch(27.16% 0.107 312.5)
XYZxyz(3.0859, 1.7194, 6.8246)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38104B #234B10
analogous
#1A104B #38104B #4B1040
triadic
#38104B #4B3810 #104B38
tetradic
#38104B #4B1A10 #234B10 #10404B
square
#38104B #4B1A10 #234B10 #10404B
split-complementary
#38104B #404B10 #104B1A
monochromatic
#130519 #130519 #38104B #5E1B7D #8326B0

Accessibility & contrast

On white

15.63
#38104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#38104B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38104B
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38104B#FFFFFF#000000##FFFFFF
##38104B1.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214D
Deuteranopia (green-blind)
#0A244A
Tritanopia (blue-blind)
#361D2C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #38104b;
/* rgb */ color: rgb(56, 16, 75);
/* oklch */ color: oklch(27.2% 0.107 312.5);
Tailwind
colors: {
  custom: {
    50: '#71527e',
    500: '#38104b',
    950: '#000000',
  },
}
SCSS
$custom: #38104b;
$custom-light: #71527e;
$custom-dark: #000000;
JSON
{
  "hex": "#38104b",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 280.678,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.27157,
    "c": 0.10657,
    "h": 312.5
  },
  "luminance": 0.01719
}

Semantic roles & 50–950 ramp

primary
#38104B
secondary
#4D8532
accent
#E84076
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #38104B

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

Preview Lab → · Contrast checker → · Palette generator →

#38104B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva