#382AA4#382AA4

#382AA4 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.185 H 278.7°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#382AA4
RGBrgb(56, 42, 164)
HSLhsl(247, 59%, 40%)
HSVhsv(247, 74%, 64%)
CMYKcmyk(65.9%, 74.4%, 0%, 35.7%)
CIE-LABlab(27.23, 42.88, -63.29)
CIE-LCHlch(27.23, 76.44, 304.12°)
OKLaboklab(39.13% 0.028 -0.1827)
OKLCHoklch(39.13% 0.185 278.7)
XYZxyz(9.1575, 5.1763, 35.6313)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382AA4 #96A42A
analogous
#2A59A4 #382AA4 #752AA4
triadic
#382AA4 #A4382A #2AA438
tetradic
#382AA4 #A42A59 #96A42A #2AA475
square
#382AA4 #A42A59 #96A42A #2AA475
split-complementary
#382AA4 #A4752A #59A42A
monochromatic
#171143 #271E73 #382AA4 #4E3ECD #7B6EDA

Accessibility & contrast

On white

10.32
#382AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#382AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382AA4
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382AA4#FFFFFF#000000##FFFFFF
##382AA41.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#003BA2
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #382aa4;
/* rgb */ color: rgb(56, 42, 164);
/* oklch */ color: oklch(39.1% 0.185 278.7);
Tailwind
colors: {
  custom: {
    50: '#7d66c0',
    500: '#382aa4',
    950: '#000000',
  },
}
SCSS
$custom: #382aa4;
$custom-light: #7d66c0;
$custom-dark: #000000;
JSON
{
  "hex": "#382aa4",
  "rgb": {
    "r": 56,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 246.885,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39131,
    "c": 0.18485,
    "h": 278.7
  },
  "luminance": 0.05177
}

Semantic roles & 50–950 ramp

primary
#382AA4
secondary
#B7C169
accent
#E245D0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #382AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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