#38104D#38104D

#38104D is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.3% C 0.109 H 311.2°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#38104D
RGBrgb(56, 16, 77)
HSLhsl(279, 66%, 18%)
HSVhsv(279, 79%, 30%)
CMYKcmyk(27.3%, 79.2%, 0%, 69.8%)
CIE-LABlab(14.10, 30.96, -28.94)
CIE-LCHlch(14.10, 42.38, 316.92°)
OKLaboklab(27.32% 0.0717 -0.0819)
OKLCHoklch(27.32% 0.109 311.2)
XYZxyz(3.1555, 1.7472, 7.1908)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38104D #254D10
analogous
#19104D #38104D #4D1043
triadic
#38104D #4D3810 #104D38
tetradic
#38104D #4D1910 #254D10 #10434D
square
#38104D #4D1910 #254D10 #10434D
split-complementary
#38104D #434D10 #104D19
monochromatic
#120519 #13051A #38104D #5D1B80 #8225B2

Accessibility & contrast

On white

15.56
#38104D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38104D
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38104D#FFFFFF#000000##FFFFFF
##38104D1.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224F
Deuteranopia (green-blind)
#07254C
Tritanopia (blue-blind)
#351E2D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #38104d;
/* rgb */ color: rgb(56, 16, 77);
/* oklch */ color: oklch(27.3% 0.109 311.2);
Tailwind
colors: {
  custom: {
    50: '#71527f',
    500: '#38104d',
    950: '#000000',
  },
}
SCSS
$custom: #38104d;
$custom-light: #71527f;
$custom-dark: #000000;
JSON
{
  "hex": "#38104d",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 77
  },
  "hsl": {
    "h": 279.344,
    "s": 65.591,
    "l": 18.235
  },
  "oklch": {
    "l": 0.27323,
    "c": 0.10882,
    "h": 311.2
  },
  "luminance": 0.01747
}

Semantic roles & 50–950 ramp

primary
#38104D
secondary
#4F8732
accent
#E93F7A
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #38104D

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

Preview Lab → · Contrast checker → · Palette generator →

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