#382CA4#382CA4

#382CA4 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.4% C 0.183 H 278.4°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#382CA4
RGBrgb(56, 44, 164)
HSLhsl(246, 58%, 41%)
HSVhsv(246, 73%, 64%)
CMYKcmyk(65.9%, 73.2%, 0%, 35.7%)
CIE-LABlab(27.63, 41.75, -62.63)
CIE-LCHlch(27.63, 75.27, 303.69°)
OKLaboklab(39.42% 0.0267 -0.1808)
OKLCHoklch(39.42% 0.183 278.4)
XYZxyz(9.2303, 5.3217, 35.6555)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382CA4 #98A42C
analogous
#2C5CA4 #382CA4 #742CA4
triadic
#382CA4 #A4382C #2CA438
tetradic
#382CA4 #A42C5C #98A42C #2CA474
square
#382CA4 #A42C5C #98A42C #2CA474
split-complementary
#382CA4 #A4742C #5CA42C
monochromatic
#171243 #281F74 #382CA4 #4F41CC #7C71D9

Accessibility & contrast

On white

10.17
#382CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#382CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382CA4
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382CA4#FFFFFF#000000##FFFFFF
##382CA41.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#003CA2
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #382ca4;
/* rgb */ color: rgb(56, 44, 164);
/* oklch */ color: oklch(39.4% 0.183 278.4);
Tailwind
colors: {
  custom: {
    50: '#7d67c0',
    500: '#382ca4',
    950: '#000000',
  },
}
SCSS
$custom: #382ca4;
$custom-light: #7d67c0;
$custom-dark: #000000;
JSON
{
  "hex": "#382ca4",
  "rgb": {
    "r": 56,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 246,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39415,
    "c": 0.18276,
    "h": 278.4
  },
  "luminance": 0.05322
}

Semantic roles & 50–950 ramp

primary
#382CA4
secondary
#B8C06B
accent
#E147D2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #382CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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