#38164F#38164F

#38164F is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.102 H 308.7°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#38164F
RGBrgb(56, 22, 79)
HSLhsl(276, 56%, 20%)
HSVhsv(276, 72%, 31%)
CMYKcmyk(29.1%, 72.2%, 0%, 69%)
CIE-LABlab(15.38, 28.34, -28.26)
CIE-LCHlch(15.38, 40.02, 315.09°)
OKLaboklab(28.29% 0.0639 -0.0799)
OKLCHoklch(28.29% 0.102 308.7)
XYZxyz(3.3288, 1.9791, 7.6023)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38164F #2D4F16
analogous
#1B164F #38164F #4F164A
triadic
#38164F #4F3816 #164F38
tetradic
#38164F #4F1B16 #2D4F16 #164A4F
square
#38164F #4F1B16 #2D4F16 #164A4F
split-complementary
#38164F #4A4F16 #164F1B
monochromatic
#110718 #16091F #38164F #5A237F #7C31AF

Accessibility & contrast

On white

15.05
#38164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#38164F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38164F
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38164F#FFFFFF#000000##FFFFFF
##38164F1.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002551
Deuteranopia (green-blind)
#0C274E
Tritanopia (blue-blind)
#352230
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #38164f;
/* rgb */ color: rgb(56, 22, 79);
/* oklch */ color: oklch(28.3% 0.102 308.7);
Tailwind
colors: {
  custom: {
    50: '#715681',
    500: '#38164f',
    950: '#000000',
  },
}
SCSS
$custom: #38164f;
$custom-light: #715681;
$custom-dark: #000000;
JSON
{
  "hex": "#38164f",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 275.789,
    "s": 56.436,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28286,
    "c": 0.1023,
    "h": 308.7
  },
  "luminance": 0.01979
}

Semantic roles & 50–950 ramp

primary
#38164F
secondary
#59863A
accent
#E04885
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #38164F

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

Preview Lab → · Contrast checker → · Palette generator →

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