#38177D#38177D

#38177D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.157 H 289.4°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#38177D
RGBrgb(56, 23, 125)
HSLhsl(259, 69%, 29%)
HSVhsv(259, 82%, 49%)
CMYKcmyk(55.2%, 81.6%, 0%, 51%)
CIE-LABlab(19.78, 40.79, -51.37)
CIE-LCHlch(19.78, 65.59, 308.45°)
OKLaboklab(32.7% 0.0519 -0.1477)
OKLCHoklch(32.7% 0.157 289.4)
XYZxyz(5.6379, 2.9339, 19.6673)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38177D #5C7D17
analogous
#17297D #38177D #6B177D
triadic
#38177D #7D3817 #177D38
tetradic
#38177D #7D1729 #5C7D17 #177D6B
square
#38177D #7D1729 #5C7D17 #177D6B
split-complementary
#38177D #7D6B17 #297D17
monochromatic
#0C051A #210D49 #38177D #4F21B1 #6A35DA

Accessibility & contrast

On white

13.23
#38177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#38177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38177D
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38177D#FFFFFF#000000##FFFFFF
##38177D1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#1D354A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #38177d;
/* rgb */ color: rgb(56, 23, 125);
/* oklch */ color: oklch(32.7% 0.157 289.4);
Tailwind
colors: {
  custom: {
    50: '#7759a4',
    500: '#38177d',
    950: '#000000',
  },
}
SCSS
$custom: #38177d;
$custom-light: #7759a4;
$custom-dark: #000000;
JSON
{
  "hex": "#38177d",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 259.412,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32696,
    "c": 0.15659,
    "h": 289.4
  },
  "luminance": 0.02934
}

Semantic roles & 50–950 ramp

primary
#38177D
secondary
#8CB23E
accent
#EC3CB3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #38177D

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

Preview Lab → · Contrast checker → · Palette generator →

#38177D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva