#382B73#382B73

#382B73 is a dark, moderate violet. Relative luminance 0.038; OKLCH L 34.7% C 0.119 H 286.8°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#382B73
RGBrgb(56, 43, 115)
HSLhsl(251, 46%, 31%)
HSVhsv(251, 63%, 45%)
CMYKcmyk(51.3%, 62.6%, 0%, 54.9%)
CIE-LABlab(23.02, 26.24, -39.69)
CIE-LCHlch(23.02, 47.58, 303.47°)
OKLaboklab(34.74% 0.0343 -0.1135)
OKLCHoklch(34.74% 0.119 286.8)
XYZxyz(5.5884, 3.8061, 16.6565)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382B73 #66732B
analogous
#2B4273 #382B73 #5C2B73
triadic
#382B73 #73382B #2B7338
tetradic
#382B73 #732B42 #66732B #2B735C
square
#382B73 #732B42 #66732B #2B735C
split-complementary
#382B73 #735C2B #42732B
monochromatic
#0D0A1A #221A46 #382B73 #4E3CA0 #6B58C1

Accessibility & contrast

On white

11.92
#382B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#382B73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382B73
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382B73#FFFFFF#000000##FFFFFF
##382B731.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003975
Deuteranopia (green-blind)
#003571
Tritanopia (blue-blind)
#233C4A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #382b73;
/* rgb */ color: rgb(56, 43, 115);
/* oklch */ color: oklch(34.7% 0.119 286.8);
Tailwind
colors: {
  custom: {
    50: '#74659c',
    500: '#382b73',
    950: '#000000',
  },
}
SCSS
$custom: #382b73;
$custom-light: #74659c;
$custom-dark: #000000;
JSON
{
  "hex": "#382b73",
  "rgb": {
    "r": 56,
    "g": 43,
    "b": 115
  },
  "hsl": {
    "h": 250.833,
    "s": 45.57,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34735,
    "c": 0.11859,
    "h": 286.8
  },
  "luminance": 0.03806
}

Semantic roles & 50–950 ramp

primary
#382B73
secondary
#96A555
accent
#D553BE
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09050E
muted
#7B7A7E

Preview Lab

Preview with #382B73

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

Preview Lab → · Contrast checker → · Palette generator →

#382B73 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva