#39168D#39168D

#39168D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.176 H 286.0°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#39168D
RGBrgb(57, 22, 141)
HSLhsl(258, 73%, 32%)
HSVhsv(258, 84%, 55%)
CMYKcmyk(59.6%, 84.4%, 0%, 44.7%)
CIE-LABlab(21.46, 45.92, -58.68)
CIE-LCHlch(21.46, 74.51, 308.05°)
OKLaboklab(34.39% 0.0485 -0.169)
OKLCHoklch(34.39% 0.176 286)
XYZxyz(6.7805, 3.3664, 25.4866)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39168D #6A8D16
analogous
#162F8D #39168D #75168D
triadic
#39168D #8D3916 #168D39
tetradic
#39168D #8D162F #6A8D16 #168D75
square
#39168D #8D162F #6A8D16 #168D75
split-complementary
#39168D #8D7516 #2F8D16
monochromatic
#0E0523 #240E58 #39168D #4E1EC2 #6D3DE1

Accessibility & contrast

On white

12.55
#39168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#39168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39168D
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39168D#FFFFFF#000000##FFFFFF
##39168D1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#0A3B53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #39168d;
/* rgb */ color: rgb(57, 22, 141);
/* oklch */ color: oklch(34.4% 0.176 286.0);
Tailwind
colors: {
  custom: {
    50: '#7b5ab0',
    500: '#39168d',
    950: '#000000',
  },
}
SCSS
$custom: #39168d;
$custom-light: #7b5ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#39168d",
  "rgb": {
    "r": 57,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 257.647,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34395,
    "c": 0.17587,
    "h": 286
  },
  "luminance": 0.03367
}

Semantic roles & 50–950 ramp

primary
#39168D
secondary
#9AC13E
accent
#F038BA
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #39168D

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

Preview Lab → · Contrast checker → · Palette generator →

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