#382B79#382B79

#382B79 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.2% C 0.127 H 285.5°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#382B79
RGBrgb(56, 43, 121)
HSLhsl(250, 48%, 32%)
HSVhsv(250, 64%, 47%)
CMYKcmyk(53.7%, 64.5%, 0%, 52.5%)
CIE-LABlab(23.50, 28.21, -42.74)
CIE-LCHlch(23.50, 51.21, 303.43°)
OKLaboklab(35.24% 0.0339 -0.1225)
OKLCHoklch(35.24% 0.127 285.5)
XYZxyz(5.9449, 3.9487, 18.5344)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382B79 #6C792B
analogous
#2B4579 #382B79 #5F2B79
triadic
#382B79 #79382B #2B7938
tetradic
#382B79 #792B45 #6C792B #2B795F
square
#382B79 #792B45 #6C792B #2B795F
split-complementary
#382B79 #795F2B #45792B
monochromatic
#0E0B1F #231B4C #382B79 #4D3BA6 #6C5AC4

Accessibility & contrast

On white

11.73
#382B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#382B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382B79
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382B79#FFFFFF#000000##FFFFFF
##382B791.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7C
Deuteranopia (green-blind)
#003677
Tritanopia (blue-blind)
#1F3E4D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #382b79;
/* rgb */ color: rgb(56, 43, 121);
/* oklch */ color: oklch(35.2% 0.127 285.5);
Tailwind
colors: {
  custom: {
    50: '#7565a0',
    500: '#382b79',
    950: '#000000',
  },
}
SCSS
$custom: #382b79;
$custom-light: #7565a0;
$custom-dark: #000000;
JSON
{
  "hex": "#382b79",
  "rgb": {
    "r": 56,
    "g": 43,
    "b": 121
  },
  "hsl": {
    "h": 250,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35239,
    "c": 0.1271,
    "h": 285.5
  },
  "luminance": 0.03949
}

Semantic roles & 50–950 ramp

primary
#382B79
secondary
#9CAA56
accent
#D751C1
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09050F
muted
#7B7A7E

Preview Lab

Preview with #382B79

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

Preview Lab → · Contrast checker → · Palette generator →

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