#38177B#38177B

#38177B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.154 H 289.9°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#38177B
RGBrgb(56, 23, 123)
HSLhsl(260, 68%, 29%)
HSVhsv(260, 81%, 48%)
CMYKcmyk(54.5%, 81.3%, 0%, 51.8%)
CIE-LABlab(19.57, 40.21, -50.44)
CIE-LCHlch(19.57, 64.50, 308.56°)
OKLaboklab(32.49% 0.0526 -0.145)
OKLCHoklch(32.49% 0.154 289.9)
XYZxyz(5.5114, 2.8834, 19.0012)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38177B #5A7B17
analogous
#17287B #38177B #6A177B
triadic
#38177B #7B3817 #177B38
tetradic
#38177B #7B1728 #5A7B17 #177B6A
square
#38177B #7B1728 #5A7B17 #177B6A
split-complementary
#38177B #7B6A17 #287B17
monochromatic
#0C051A #210D47 #38177B #4F21AF #6A33D9

Accessibility & contrast

On white

13.32
#38177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#38177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38177B
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38177B#FFFFFF#000000##FFFFFF
##38177B1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#1F3449
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #38177b;
/* rgb */ color: rgb(56, 23, 123);
/* oklch */ color: oklch(32.5% 0.154 289.9);
Tailwind
colors: {
  custom: {
    50: '#7759a2',
    500: '#38177b',
    950: '#000000',
  },
}
SCSS
$custom: #38177b;
$custom-light: #7759a2;
$custom-dark: #000000;
JSON
{
  "hex": "#38177b",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 259.8,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3249,
    "c": 0.15424,
    "h": 289.9
  },
  "luminance": 0.02884
}

Semantic roles & 50–950 ramp

primary
#38177B
secondary
#8AB03E
accent
#EB3CB2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #38177B

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

Preview Lab → · Contrast checker → · Palette generator →

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