#38165B#38165B

#38165B is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.3% C 0.117 H 302.1°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#38165B
RGBrgb(56, 22, 91)
HSLhsl(270, 61%, 22%)
HSVhsv(270, 76%, 36%)
CMYKcmyk(38.5%, 75.8%, 0%, 64.3%)
CIE-LABlab(16.35, 31.59, -34.79)
CIE-LCHlch(16.35, 47.00, 312.24°)
OKLaboklab(29.29% 0.0622 -0.0991)
OKLCHoklch(29.29% 0.117 302.1)
XYZxyz(3.8057, 2.1699, 10.1138)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38165B #395B16
analogous
#16175B #38165B #5B165B
triadic
#38165B #5B3816 #165B38
tetradic
#38165B #5B1617 #395B16 #165B5B
square
#38165B #5B1617 #395B16 #165B5B
split-complementary
#38165B #5B5B16 #175B16
monochromatic
#0F0619 #1A0A2A #38165B #56228C #752EBE

Accessibility & contrast

On white

14.64
#38165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#38165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38165B
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38165B#FFFFFF#000000##FFFFFF
##38165B1.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00285A
Tritanopia (blue-blind)
#312636
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #38165b;
/* rgb */ color: rgb(56, 22, 91);
/* oklch */ color: oklch(29.3% 0.117 302.1);
Tailwind
colors: {
  custom: {
    50: '#72568a',
    500: '#38165b',
    950: '#000000',
  },
}
SCSS
$custom: #38165b;
$custom-light: #72568a;
$custom-dark: #000000;
JSON
{
  "hex": "#38165b",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 269.565,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29294,
    "c": 0.117,
    "h": 302.1
  },
  "luminance": 0.0217
}

Semantic roles & 50–950 ramp

primary
#38165B
secondary
#67923B
accent
#E44495
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38165B

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

Preview Lab → · Contrast checker → · Palette generator →

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