#382A72#382A72

#382A72 is a dark, moderate violet. Relative luminance 0.037; OKLCH L 34.5% C 0.119 H 287.4°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#382A72
RGBrgb(56, 42, 114)
HSLhsl(252, 46%, 31%)
HSVhsv(252, 63%, 45%)
CMYKcmyk(50.9%, 63.2%, 0%, 55.3%)
CIE-LABlab(22.69, 26.56, -39.58)
CIE-LCHlch(22.69, 47.66, 303.86°)
OKLaboklab(34.47% 0.0355 -0.1132)
OKLCHoklch(34.47% 0.119 287.4)
XYZxyz(5.4952, 3.7113, 16.3431)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382A72 #64722A
analogous
#2A4072 #382A72 #5C2A72
triadic
#382A72 #72382A #2A7238
tetradic
#382A72 #722A40 #64722A #2A725C
square
#382A72 #722A40 #64722A #2A725C
split-complementary
#382A72 #725C2A #40722A
monochromatic
#0C0919 #221A45 #382A72 #4E3A9F #6B56C1

Accessibility & contrast

On white

12.05
#382A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #382A72
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382A72#FFFFFF#000000##FFFFFF
##382A721.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#243B49
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #382a72;
/* rgb */ color: rgb(56, 42, 114);
/* oklch */ color: oklch(34.5% 0.119 287.4);
Tailwind
colors: {
  custom: {
    50: '#74649b',
    500: '#382a72',
    950: '#000000',
  },
}
SCSS
$custom: #382a72;
$custom-light: #74649b;
$custom-dark: #000000;
JSON
{
  "hex": "#382a72",
  "rgb": {
    "r": 56,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 251.667,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34471,
    "c": 0.11864,
    "h": 287.4
  },
  "luminance": 0.03712
}

Semantic roles & 50–950 ramp

primary
#382A72
secondary
#94A454
accent
#D652BC
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09050E
muted
#7B7A7E

Preview Lab

Preview with #382A72

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

Preview Lab → · Contrast checker → · Palette generator →

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