#38166D#38166D

#38166D is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.139 H 294.6°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#38166D
RGBrgb(56, 22, 109)
HSLhsl(263, 66%, 26%)
HSVhsv(263, 80%, 43%)
CMYKcmyk(48.6%, 79.8%, 0%, 57.3%)
CIE-LABlab(18.00, 36.67, -43.99)
CIE-LCHlch(18.00, 57.26, 309.81°)
OKLaboklab(30.97% 0.0578 -0.1261)
OKLCHoklch(30.97% 0.139 294.6)
XYZxyz(4.6774, 2.5186, 14.7047)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38166D #4B6D16
analogous
#16206D #38166D #63166D
triadic
#38166D #6D3816 #166D38
tetradic
#38166D #6D1620 #4B6D16 #166D63
square
#38166D #6D1620 #4B6D16 #166D63
split-complementary
#38166D #6D6316 #206D16
monochromatic
#0D0519 #1E0C3A #38166D #5220A0 #6C2BD3

Accessibility & contrast

On white

13.96
#38166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#38166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38166D
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38166D#FFFFFF#000000##FFFFFF
##38166D1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#002B6B
Tritanopia (blue-blind)
#292E41
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #38166d;
/* rgb */ color: rgb(56, 22, 109);
/* oklch */ color: oklch(31.0% 0.139 294.6);
Tailwind
colors: {
  custom: {
    50: '#755798',
    500: '#38166d',
    950: '#000000',
  },
}
SCSS
$custom: #38166d;
$custom-light: #755798;
$custom-dark: #000000;
JSON
{
  "hex": "#38166d",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 263.448,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30968,
    "c": 0.13869,
    "h": 294.6
  },
  "luminance": 0.02519
}

Semantic roles & 50–950 ramp

primary
#38166D
secondary
#7BA33C
accent
#E93EA7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #38166D

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

Preview Lab → · Contrast checker → · Palette generator →

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