#38177E#38177E

#38177E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.158 H 289.1°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#38177E
RGBrgb(56, 23, 126)
HSLhsl(259, 69%, 29%)
HSVhsv(259, 82%, 49%)
CMYKcmyk(55.6%, 81.7%, 0%, 50.6%)
CIE-LABlab(19.88, 41.07, -51.84)
CIE-LCHlch(19.88, 66.14, 308.39°)
OKLaboklab(32.8% 0.0516 -0.1491)
OKLCHoklch(32.8% 0.158 289.1)
XYZxyz(5.7021, 2.9596, 20.0054)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38177E #5D7E17
analogous
#172A7E #38177E #6C177E
triadic
#38177E #7E3817 #177E38
tetradic
#38177E #7E172A #5D7E17 #177E6C
square
#38177E #7E172A #5D7E17 #177E6C
split-complementary
#38177E #7E6C17 #2A7E17
monochromatic
#0C051A #210E4A #38177E #4F20B2 #6A35DA

Accessibility & contrast

On white

13.19
#38177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38177E
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38177E#FFFFFF#000000##FFFFFF
##38177E1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#1C354B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #38177e;
/* rgb */ color: rgb(56, 23, 126);
/* oklch */ color: oklch(32.8% 0.158 289.1);
Tailwind
colors: {
  custom: {
    50: '#7859a4',
    500: '#38177e',
    950: '#000000',
  },
}
SCSS
$custom: #38177e;
$custom-light: #7859a4;
$custom-dark: #000000;
JSON
{
  "hex": "#38177e",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 259.223,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.328,
    "c": 0.15776,
    "h": 289.1
  },
  "luminance": 0.0296
}

Semantic roles & 50–950 ramp

primary
#38177E
secondary
#8DB33E
accent
#EC3CB4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #38177E

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

Preview Lab → · Contrast checker → · Palette generator →

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