#382168#382168

#382168 is a dark, moderate violet. Relative luminance 0.029; OKLCH L 32.1% C 0.118 H 293.5°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#382168
RGBrgb(56, 33, 104)
HSLhsl(259, 52%, 27%)
HSVhsv(259, 68%, 41%)
CMYKcmyk(46.2%, 68.3%, 0%, 59.2%)
CIE-LABlab(19.75, 29.06, -37.87)
CIE-LCHlch(19.75, 47.74, 307.50°)
OKLaboklab(32.07% 0.0471 -0.1082)
OKLCHoklch(32.07% 0.118 293.5)
XYZxyz(4.6728, 2.9278, 13.4129)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382168 #516821
analogous
#212D68 #382168 #5C2168
triadic
#382168 #683821 #216838
tetradic
#382168 #68212D #516821 #21685C
square
#382168 #68212D #516821 #21685C
split-complementary
#382168 #685C21 #2D6821
monochromatic
#0D0717 #1F123A #382168 #513096 #6B41C3

Accessibility & contrast

On white

13.24
#382168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#382168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382168
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382168#FFFFFF#000000##FFFFFF
##3821681.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316A
Deuteranopia (green-blind)
#002E67
Tritanopia (blue-blind)
#2B3241
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #382168;
/* rgb */ color: rgb(56, 33, 104);
/* oklch */ color: oklch(32.1% 0.118 293.5);
Tailwind
colors: {
  custom: {
    50: '#735e94',
    500: '#382168',
    950: '#000000',
  },
}
SCSS
$custom: #382168;
$custom-light: #735e94;
$custom-dark: #000000;
JSON
{
  "hex": "#382168",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 259.437,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32075,
    "c": 0.11802,
    "h": 293.5
  },
  "luminance": 0.02928
}

Semantic roles & 50–950 ramp

primary
#382168
secondary
#819C49
accent
#DB4DAD
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #382168

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

Preview Lab → · Contrast checker → · Palette generator →

#382168 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva