#382A71#382A71

#382A71 is a dark, moderate violet. Relative luminance 0.037; OKLCH L 34.4% C 0.117 H 287.7°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#382A71
RGBrgb(56, 42, 113)
HSLhsl(252, 46%, 30%)
HSVhsv(252, 63%, 44%)
CMYKcmyk(50.4%, 62.8%, 0%, 55.7%)
CIE-LABlab(22.61, 26.23, -39.06)
CIE-LCHlch(22.61, 47.05, 303.88°)
OKLaboklab(34.39% 0.0356 -0.1117)
OKLCHoklch(34.39% 0.117 287.7)
XYZxyz(5.4386, 3.6887, 16.0450)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382A71 #63712A
analogous
#2A3F71 #382A71 #5B2A71
triadic
#382A71 #71382A #2A7138
tetradic
#382A71 #712A3F #63712A #2A715B
square
#382A71 #712A3F #63712A #2A715B
split-complementary
#382A71 #715B2A #3F712A
monochromatic
#0C0918 #221944 #382A71 #4E3B9E #6A55C0

Accessibility & contrast

On white

12.08
#382A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#382A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382A71
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382A71#FFFFFF#000000##FFFFFF
##382A711.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#253A49
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #382a71;
/* rgb */ color: rgb(56, 42, 113);
/* oklch */ color: oklch(34.4% 0.117 287.7);
Tailwind
colors: {
  custom: {
    50: '#74649a',
    500: '#382a71',
    950: '#000000',
  },
}
SCSS
$custom: #382a71;
$custom-light: #74649a;
$custom-dark: #000000;
JSON
{
  "hex": "#382a71",
  "rgb": {
    "r": 56,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 251.831,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34388,
    "c": 0.11721,
    "h": 287.7
  },
  "luminance": 0.03689
}

Semantic roles & 50–950 ramp

primary
#382A71
secondary
#93A354
accent
#D552BC
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #382A71

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

Preview Lab → · Contrast checker → · Palette generator →

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