#38164A#38164A

#38164A is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.096 H 311.9°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#38164A
RGBrgb(56, 22, 74)
HSLhsl(279, 54%, 19%)
HSVhsv(279, 70%, 29%)
CMYKcmyk(24.3%, 70.3%, 0%, 71%)
CIE-LABlab(15.00, 27.03, -25.43)
CIE-LCHlch(15.00, 37.11, 316.76°)
OKLaboklab(27.9% 0.0642 -0.0716)
OKLCHoklch(27.9% 0.096 311.9)
XYZxyz(3.1536, 1.9091, 6.6796)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38164A #284A16
analogous
#1E164A #38164A #4A1642
triadic
#38164A #4A3816 #164A38
tetradic
#38164A #4A1E16 #284A16 #16424A
square
#38164A #4A1E16 #284A16 #16424A
split-complementary
#38164A #424A16 #164A1E
monochromatic
#120718 #14081B #38164A #5C2479 #7F32A8

Accessibility & contrast

On white

15.20
#38164A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#38164A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38164A
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38164A#FFFFFF#000000##FFFFFF
##38164A1.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01244C
Deuteranopia (green-blind)
#112649
Tritanopia (blue-blind)
#36202D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #38164a;
/* rgb */ color: rgb(56, 22, 74);
/* oklch */ color: oklch(27.9% 0.096 311.9);
Tailwind
colors: {
  custom: {
    50: '#71567d',
    500: '#38164a',
    950: '#000000',
  },
}
SCSS
$custom: #38164a;
$custom-light: #71567d;
$custom-dark: #000000;
JSON
{
  "hex": "#38164a",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 74
  },
  "hsl": {
    "h": 279.231,
    "s": 54.167,
    "l": 18.824
  },
  "oklch": {
    "l": 0.27896,
    "c": 0.09617,
    "h": 311.9
  },
  "luminance": 0.01909
}

Semantic roles & 50–950 ramp

primary
#38164A
secondary
#53823A
accent
#DE4A7D
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#080309
muted
#7B787B

Preview Lab

Preview with #38164A

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

Preview Lab → · Contrast checker → · Palette generator →

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