#38174C#38174C

#38174C is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.097 H 310.3°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#38174C
RGBrgb(56, 23, 76)
HSLhsl(277, 54%, 19%)
HSVhsv(277, 70%, 30%)
CMYKcmyk(26.3%, 69.7%, 0%, 70.2%)
CIE-LABlab(15.36, 26.98, -26.23)
CIE-LCHlch(15.36, 37.63, 315.81°)
OKLaboklab(28.2% 0.0627 -0.074)
OKLCHoklch(28.2% 0.097 310.3)
XYZxyz(3.2415, 1.9754, 7.0466)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38174C #2B4C17
analogous
#1E174C #38174C #4C1746
triadic
#38174C #4C3817 #174C38
tetradic
#38174C #4C1E17 #2B4C17 #17464C
square
#38174C #4C1E17 #2B4C17 #17464C
split-complementary
#38174C #464C17 #174C1E
monochromatic
#110717 #15091D #38174C #5B257B #7D33AA

Accessibility & contrast

On white

15.05
#38174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38174C
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38174C#FFFFFF#000000##FFFFFF
##38174C1.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)
#01254E
Deuteranopia (green-blind)
#11274B
Tritanopia (blue-blind)
#35212F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #38174c;
/* rgb */ color: rgb(56, 23, 76);
/* oklch */ color: oklch(28.2% 0.097 310.3);
Tailwind
colors: {
  custom: {
    50: '#71567e',
    500: '#38174c',
    950: '#000000',
  },
}
SCSS
$custom: #38174c;
$custom-light: #71567e;
$custom-dark: #000000;
JSON
{
  "hex": "#38174c",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 277.358,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28199,
    "c": 0.09698,
    "h": 310.3
  },
  "luminance": 0.01975
}

Semantic roles & 50–950 ramp

primary
#38174C
secondary
#57833C
accent
#DD4B82
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #38174C

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

Preview Lab → · Contrast checker → · Palette generator →

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