#382A7E#382A7E

#382A7E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.5% C 0.135 H 284.8°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#382A7E
RGBrgb(56, 42, 126)
HSLhsl(250, 50%, 33%)
HSVhsv(250, 67%, 49%)
CMYKcmyk(55.6%, 66.7%, 0%, 50.6%)
CIE-LABlab(23.68, 30.49, -45.61)
CIE-LCHlch(23.68, 54.87, 303.76°)
OKLaboklab(35.5% 0.0345 -0.1309)
OKLCHoklch(35.5% 0.135 284.8)
XYZxyz(6.2236, 4.0027, 20.1793)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382A7E #707E2A
analogous
#2A467E #382A7E #622A7E
triadic
#382A7E #7E382A #2A7E38
tetradic
#382A7E #7E2A46 #707E2A #2A7E62
square
#382A7E #7E2A46 #707E2A #2A7E62
split-complementary
#382A7E #7E622A #467E2A
monochromatic
#0F0B22 #241B50 #382A7E #4C39AC #6D5AC8

Accessibility & contrast

On white

11.66
#382A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#382A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382A7E
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382A7E#FFFFFF#000000##FFFFFF
##382A7E1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#1A3F50
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #382a7e;
/* rgb */ color: rgb(56, 42, 126);
/* oklch */ color: oklch(35.5% 0.135 284.8);
Tailwind
colors: {
  custom: {
    50: '#7664a4',
    500: '#382a7e',
    950: '#000000',
  },
}
SCSS
$custom: #382a7e;
$custom-light: #7664a4;
$custom-dark: #000000;
JSON
{
  "hex": "#382a7e",
  "rgb": {
    "r": 56,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 250,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.355,
    "c": 0.13543,
    "h": 284.8
  },
  "luminance": 0.04003
}

Semantic roles & 50–950 ramp

primary
#382A7E
secondary
#9FAE56
accent
#DA4EC2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #382A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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