#38174E#38174E

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

Color values

HEX#38174E
RGBrgb(56, 23, 78)
HSLhsl(276, 54%, 20%)
HSVhsv(276, 71%, 31%)
CMYKcmyk(28.2%, 70.5%, 0%, 69.4%)
CIE-LABlab(15.51, 27.51, -27.36)
CIE-LCHlch(15.51, 38.80, 315.15°)
OKLaboklab(28.35% 0.0626 -0.0773)
OKLCHoklch(28.35% 0.099 309)
XYZxyz(3.3122, 2.0037, 7.4185)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38174E #2D4E17
analogous
#1D174E #38174E #4E1749
triadic
#38174E #4E3817 #174E38
tetradic
#38174E #4E1D17 #2D4E17 #17494E
square
#38174E #4E1D17 #2D4E17 #17494E
split-complementary
#38174E #494E17 #174E1D
monochromatic
#110718 #16091F #38174E #5A257D #7C33AD

Accessibility & contrast

On white

14.99
#38174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38174E
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38174E#FFFFFF#000000##FFFFFF
##38174E1.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002550
Deuteranopia (green-blind)
#0E274D
Tritanopia (blue-blind)
#352230
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #38174e;
/* rgb */ color: rgb(56, 23, 78);
/* oklch */ color: oklch(28.4% 0.099 309.0);
Tailwind
colors: {
  custom: {
    50: '#715680',
    500: '#38174e',
    950: '#000000',
  },
}
SCSS
$custom: #38174e;
$custom-light: #715680;
$custom-dark: #000000;
JSON
{
  "hex": "#38174e",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 276,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28354,
    "c": 0.09947,
    "h": 309
  },
  "luminance": 0.02004
}

Semantic roles & 50–950 ramp

primary
#38174E
secondary
#59853C
accent
#DE4A85
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #38174E

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

Preview Lab → · Contrast checker → · Palette generator →

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