#38174F#38174F

#38174F is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.101 H 308.4°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#38174F
RGBrgb(56, 23, 79)
HSLhsl(275, 55%, 20%)
HSVhsv(275, 71%, 31%)
CMYKcmyk(29.1%, 70.9%, 0%, 69%)
CIE-LABlab(15.58, 27.78, -27.93)
CIE-LCHlch(15.58, 39.39, 314.85°)
OKLaboklab(28.43% 0.0626 -0.0789)
OKLCHoklch(28.43% 0.101 308.4)
XYZxyz(3.3483, 2.0181, 7.6088)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38174F #2E4F17
analogous
#1C174F #38174F #4F174A
triadic
#38174F #4F3817 #174F38
tetradic
#38174F #4F1C17 #2E4F17 #174A4F
square
#38174F #4F1C17 #2E4F17 #174A4F
split-complementary
#38174F #4A4F17 #174F1C
monochromatic
#110718 #160920 #38174F #5A257E #7B33AE

Accessibility & contrast

On white

14.96
#38174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38174F
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38174F#FFFFFF#000000##FFFFFF
##38174F1.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#0D274E
Tritanopia (blue-blind)
#352330
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #38174f;
/* rgb */ color: rgb(56, 23, 79);
/* oklch */ color: oklch(28.4% 0.101 308.4);
Tailwind
colors: {
  custom: {
    50: '#715681',
    500: '#38174f',
    950: '#000000',
  },
}
SCSS
$custom: #38174f;
$custom-light: #715681;
$custom-dark: #000000;
JSON
{
  "hex": "#38174f",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 275.357,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.28433,
    "c": 0.10071,
    "h": 308.4
  },
  "luminance": 0.02018
}

Semantic roles & 50–950 ramp

primary
#38174F
secondary
#5A863C
accent
#DE4A87
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #38174F

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

Preview Lab → · Contrast checker → · Palette generator →

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