#382B74#382B74

#382B74 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 34.8% C 0.120 H 286.6°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#382B74
RGBrgb(56, 43, 116)
HSLhsl(251, 46%, 31%)
HSVhsv(251, 63%, 45%)
CMYKcmyk(51.7%, 62.9%, 0%, 54.5%)
CIE-LABlab(23.10, 26.57, -40.20)
CIE-LCHlch(23.10, 48.19, 303.46°)
OKLaboklab(34.82% 0.0342 -0.115)
OKLCHoklch(34.82% 0.12 286.6)
XYZxyz(5.6462, 3.8292, 16.9612)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382B74 #67742B
analogous
#2B4274 #382B74 #5C2B74
triadic
#382B74 #74382B #2B7438
tetradic
#382B74 #742B42 #67742B #2B745C
square
#382B74 #742B42 #67742B #2B745C
split-complementary
#382B74 #745C2B #42742B
monochromatic
#0D0A1B #221A47 #382B74 #4E3CA1 #6B58C1

Accessibility & contrast

On white

11.89
#382B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#382B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382B74
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382B74#FFFFFF#000000##FFFFFF
##382B741.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003976
Deuteranopia (green-blind)
#003572
Tritanopia (blue-blind)
#233C4B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #382b74;
/* rgb */ color: rgb(56, 43, 116);
/* oklch */ color: oklch(34.8% 0.120 286.6);
Tailwind
colors: {
  custom: {
    50: '#74659d',
    500: '#382b74',
    950: '#000000',
  },
}
SCSS
$custom: #382b74;
$custom-light: #74659d;
$custom-dark: #000000;
JSON
{
  "hex": "#382b74",
  "rgb": {
    "r": 56,
    "g": 43,
    "b": 116
  },
  "hsl": {
    "h": 250.685,
    "s": 45.912,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34818,
    "c": 0.12002,
    "h": 286.6
  },
  "luminance": 0.03829
}

Semantic roles & 50–950 ramp

primary
#382B74
secondary
#97A655
accent
#D652BE
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09050E
muted
#7B7A7E

Preview Lab

Preview with #382B74

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

Preview Lab → · Contrast checker → · Palette generator →

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