#38104C#38104C

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

Color values

HEX#38104C
RGBrgb(56, 16, 76)
HSLhsl(280, 65%, 18%)
HSVhsv(280, 79%, 30%)
CMYKcmyk(26.3%, 78.9%, 0%, 70.2%)
CIE-LABlab(14.02, 30.71, -28.39)
CIE-LCHlch(14.02, 41.82, 317.25°)
OKLaboklab(27.24% 0.0718 -0.0802)
OKLCHoklch(27.24% 0.108 311.8)
XYZxyz(3.1204, 1.7332, 7.0062)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38104C #244C10
analogous
#1A104C #38104C #4C1042
triadic
#38104C #4C3810 #104C38
tetradic
#38104C #4C1A10 #244C10 #10424C
square
#38104C #4C1A10 #244C10 #10424C
split-complementary
#38104C #424C10 #104C1A
monochromatic
#130519 #130519 #38104C #5D1B7F #8325B1

Accessibility & contrast

On white

15.59
#38104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#38104C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38104C
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38104C#FFFFFF#000000##FFFFFF
##38104C1.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224E
Deuteranopia (green-blind)
#08244B
Tritanopia (blue-blind)
#361D2D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #38104c;
/* rgb */ color: rgb(56, 16, 76);
/* oklch */ color: oklch(27.2% 0.108 311.8);
Tailwind
colors: {
  custom: {
    50: '#71527e',
    500: '#38104c',
    950: '#000000',
  },
}
SCSS
$custom: #38104c;
$custom-light: #71527e;
$custom-dark: #000000;
JSON
{
  "hex": "#38104c",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 280,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.2724,
    "c": 0.10769,
    "h": 311.8
  },
  "luminance": 0.01733
}

Semantic roles & 50–950 ramp

primary
#38104C
secondary
#4E8632
accent
#E84078
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #38104C

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

Preview Lab → · Contrast checker → · Palette generator →

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