#382291#382291

#382291 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.170 H 282.9°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#382291
RGBrgb(56, 34, 145)
HSLhsl(252, 62%, 35%)
HSVhsv(252, 77%, 57%)
CMYKcmyk(61.4%, 76.6%, 0%, 43.1%)
CIE-LABlab(23.77, 41.25, -57.36)
CIE-LCHlch(23.77, 70.65, 305.72°)
OKLaboklab(36.11% 0.038 -0.1653)
OKLCHoklch(36.11% 0.17 282.9)
XYZxyz(7.3122, 4.0286, 27.1749)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382291 #7B9122
analogous
#224391 #382291 #702291
triadic
#382291 #913822 #229138
tetradic
#382291 #912243 #7B9122 #229170
square
#382291 #912243 #7B9122 #229170
split-complementary
#382291 #917022 #439122
monochromatic
#120B2E #25165F #382291 #4B2EC3 #7056D7

Accessibility & contrast

On white

11.63
#382291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#382291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382291
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382291#FFFFFF#000000##FFFFFF
##3822911.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C94
Deuteranopia (green-blind)
#00358F
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #382291;
/* rgb */ color: rgb(56, 34, 145);
/* oklch */ color: oklch(36.1% 0.170 282.9);
Tailwind
colors: {
  custom: {
    50: '#7a60b2',
    500: '#382291',
    950: '#000000',
  },
}
SCSS
$custom: #382291;
$custom-light: #7a60b2;
$custom-dark: #000000;
JSON
{
  "hex": "#382291",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 251.892,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36106,
    "c": 0.16965,
    "h": 282.9
  },
  "luminance": 0.04029
}

Semantic roles & 50–950 ramp

primary
#382291
secondary
#A7BB53
accent
#E543C5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #382291

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

Preview Lab → · Contrast checker → · Palette generator →

#382291 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva