#38104F#38104F

#38104F is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.111 H 310.0°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#38104F
RGBrgb(56, 16, 79)
HSLhsl(278, 66%, 19%)
HSVhsv(278, 80%, 31%)
CMYKcmyk(29.1%, 79.7%, 0%, 69%)
CIE-LABlab(14.26, 31.46, -30.05)
CIE-LCHlch(14.26, 43.51, 316.31°)
OKLaboklab(27.49% 0.0713 -0.0851)
OKLCHoklch(27.49% 0.111 310)
XYZxyz(3.2272, 1.7759, 7.5684)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38104F #274F10
analogous
#18104F #38104F #4F1046
triadic
#38104F #4F3810 #104F38
tetradic
#38104F #4F1810 #274F10 #10464F
square
#38104F #4F1810 #274F10 #10464F
split-complementary
#38104F #464F10 #104F18
monochromatic
#120519 #14061C #38104F #5C1A82 #8025B5

Accessibility & contrast

On white

15.50
#38104F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#38104F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38104F
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38104F#FFFFFF#000000##FFFFFF
##38104F1.0015.501.3615.50
#FFFFFF15.501.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002251
Deuteranopia (green-blind)
#04254E
Tritanopia (blue-blind)
#351E2E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #38104f;
/* rgb */ color: rgb(56, 16, 79);
/* oklch */ color: oklch(27.5% 0.111 310.0);
Tailwind
colors: {
  custom: {
    50: '#725381',
    500: '#38104f',
    950: '#000000',
  },
}
SCSS
$custom: #38104f;
$custom-light: #725381;
$custom-dark: #000000;
JSON
{
  "hex": "#38104f",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 79
  },
  "hsl": {
    "h": 278.095,
    "s": 66.316,
    "l": 18.627
  },
  "oklch": {
    "l": 0.27491,
    "c": 0.11107,
    "h": 310
  },
  "luminance": 0.01776
}

Semantic roles & 50–950 ramp

primary
#38104F
secondary
#528932
accent
#E93F7D
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #38104F

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

Preview Lab → · Contrast checker → · Palette generator →

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