#38174B#38174B

#38174B is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.096 H 311.0°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#38174B
RGBrgb(56, 23, 75)
HSLhsl(278, 53%, 19%)
HSVhsv(278, 69%, 29%)
CMYKcmyk(25.3%, 69.3%, 0%, 70.6%)
CIE-LABlab(15.28, 26.72, -25.66)
CIE-LCHlch(15.28, 37.05, 316.16°)
OKLaboklab(28.12% 0.0628 -0.0723)
OKLCHoklch(28.12% 0.096 311)
XYZxyz(3.2070, 1.9616, 6.8649)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38174B #2A4B17
analogous
#1E174B #38174B #4B1744
triadic
#38174B #4B3817 #174B38
tetradic
#38174B #4B1E17 #2A4B17 #17444B
square
#38174B #4B1E17 #2A4B17 #17444B
split-complementary
#38174B #444B17 #174B1E
monochromatic
#110717 #15091C #38174B #5B257A #7E34A9

Accessibility & contrast

On white

15.08
#38174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#38174B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38174B
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38174B#FFFFFF#000000##FFFFFF
##38174B1.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02254D
Deuteranopia (green-blind)
#12274A
Tritanopia (blue-blind)
#36212E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #38174b;
/* rgb */ color: rgb(56, 23, 75);
/* oklch */ color: oklch(28.1% 0.096 311.0);
Tailwind
colors: {
  custom: {
    50: '#71567e',
    500: '#38174b',
    950: '#000000',
  },
}
SCSS
$custom: #38174b;
$custom-light: #71567e;
$custom-dark: #000000;
JSON
{
  "hex": "#38174b",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 278.077,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28123,
    "c": 0.09574,
    "h": 311
  },
  "luminance": 0.01962
}

Semantic roles & 50–950 ramp

primary
#38174B
secondary
#55823C
accent
#DC4B80
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #38174B

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

Preview Lab → · Contrast checker → · Palette generator →

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