#38164C#38164C

#38164C is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.099 H 310.6°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#38164C
RGBrgb(56, 22, 76)
HSLhsl(278, 55%, 19%)
HSVhsv(278, 71%, 30%)
CMYKcmyk(26.3%, 71.1%, 0%, 70.2%)
CIE-LABlab(15.15, 27.55, -26.57)
CIE-LCHlch(15.15, 38.28, 316.05°)
OKLaboklab(28.05% 0.0641 -0.0749)
OKLCHoklch(28.05% 0.099 310.6)
XYZxyz(3.2221, 1.9364, 7.0401)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38164C #2A4C16
analogous
#1D164C #38164C #4C1645
triadic
#38164C #4C3816 #164C38
tetradic
#38164C #4C1D16 #2A4C16 #16454C
square
#38164C #4C1D16 #2A4C16 #16454C
split-complementary
#38164C #454C16 #164C1D
monochromatic
#110718 #15081D #38164C #5B247B #7E31AB

Accessibility & contrast

On white

15.14
#38164C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#38164C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38164C
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38164C#FFFFFF#000000##FFFFFF
##38164C1.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244E
Deuteranopia (green-blind)
#0F274B
Tritanopia (blue-blind)
#35212E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #38164c;
/* rgb */ color: rgb(56, 22, 76);
/* oklch */ color: oklch(28.0% 0.099 310.6);
Tailwind
colors: {
  custom: {
    50: '#71567e',
    500: '#38164c',
    950: '#000000',
  },
}
SCSS
$custom: #38164c;
$custom-light: #71567e;
$custom-dark: #000000;
JSON
{
  "hex": "#38164c",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 76
  },
  "hsl": {
    "h": 277.778,
    "s": 55.102,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28049,
    "c": 0.09862,
    "h": 310.6
  },
  "luminance": 0.01936
}

Semantic roles & 50–950 ramp

primary
#38164C
secondary
#55843A
accent
#DE4981
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #38164C

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

Preview Lab → · Contrast checker → · Palette generator →

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