#38164D#38164D

#38164D is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.100 H 309.9°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#38164D
RGBrgb(56, 22, 77)
HSLhsl(277, 56%, 19%)
HSVhsv(277, 71%, 30%)
CMYKcmyk(27.3%, 71.4%, 0%, 69.8%)
CIE-LABlab(15.23, 27.81, -27.13)
CIE-LCHlch(15.23, 38.86, 315.71°)
OKLaboklab(28.13% 0.0641 -0.0766)
OKLCHoklch(28.13% 0.1 309.9)
XYZxyz(3.2571, 1.9505, 7.2246)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38164D #2B4D16
analogous
#1D164D #38164D #4D1647
triadic
#38164D #4D3816 #164D38
tetradic
#38164D #4D1D16 #2B4D16 #16474D
square
#38164D #4D1D16 #2B4D16 #16474D
split-complementary
#38164D #474D16 #164D1D
monochromatic
#110718 #15081D #38164D #5B247D #7D31AC

Accessibility & contrast

On white

15.11
#38164D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38164D
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38164D#FFFFFF#000000##FFFFFF
##38164D1.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00254F
Deuteranopia (green-blind)
#0E274C
Tritanopia (blue-blind)
#35212F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #38164d;
/* rgb */ color: rgb(56, 22, 77);
/* oklch */ color: oklch(28.1% 0.100 309.9);
Tailwind
colors: {
  custom: {
    50: '#71567f',
    500: '#38164d',
    950: '#000000',
  },
}
SCSS
$custom: #38164d;
$custom-light: #71567f;
$custom-dark: #000000;
JSON
{
  "hex": "#38164d",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 77
  },
  "hsl": {
    "h": 277.091,
    "s": 55.556,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28127,
    "c": 0.09985,
    "h": 309.9
  },
  "luminance": 0.0195
}

Semantic roles & 50–950 ramp

primary
#38164D
secondary
#57853A
accent
#DF4982
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #38164D

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

Preview Lab → · Contrast checker → · Palette generator →

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