#38154A#38154A

#38154A is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.098 H 312.1°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#38154A
RGBrgb(56, 21, 74)
HSLhsl(280, 56%, 19%)
HSVhsv(280, 72%, 29%)
CMYKcmyk(24.3%, 71.6%, 0%, 71%)
CIE-LABlab(14.80, 27.60, -25.75)
CIE-LCHlch(14.80, 37.75, 316.98°)
OKLaboklab(27.75% 0.0656 -0.0725)
OKLCHoklch(27.75% 0.098 312.1)
XYZxyz(3.1349, 1.8716, 6.6733)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38154A #274A15
analogous
#1D154A #38154A #4A1541
triadic
#38154A #4A3815 #154A38
tetradic
#38154A #4A1D15 #274A15 #15414A
square
#38154A #4A1D15 #274A15 #15414A
split-complementary
#38154A #414A15 #154A1D
monochromatic
#120718 #14071A #38154A #5C237A #8030A9

Accessibility & contrast

On white

15.28
#38154A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#38154A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38154A
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38154A#FFFFFF#000000##FFFFFF
##38154A1.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234C
Deuteranopia (green-blind)
#102649
Tritanopia (blue-blind)
#361F2D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #38154a;
/* rgb */ color: rgb(56, 21, 74);
/* oklch */ color: oklch(27.7% 0.098 312.1);
Tailwind
colors: {
  custom: {
    50: '#71557d',
    500: '#38154a',
    950: '#000000',
  },
}
SCSS
$custom: #38154a;
$custom-light: #71557d;
$custom-dark: #000000;
JSON
{
  "hex": "#38154a",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 74
  },
  "hsl": {
    "h": 279.623,
    "s": 55.789,
    "l": 18.627
  },
  "oklch": {
    "l": 0.27748,
    "c": 0.09782,
    "h": 312.1
  },
  "luminance": 0.01871
}

Semantic roles & 50–950 ramp

primary
#38154A
secondary
#528239
accent
#DF497C
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#080309
muted
#7B787B

Preview Lab

Preview with #38154A

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

Preview Lab → · Contrast checker → · Palette generator →

#38154A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva