#382AA2#382AA2

#382AA2 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.9% C 0.182 H 279.0°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#382AA2
RGBrgb(56, 42, 162)
HSLhsl(247, 59%, 40%)
HSVhsv(247, 74%, 64%)
CMYKcmyk(65.4%, 74.1%, 0%, 36.5%)
CIE-LABlab(27.03, 42.24, -62.40)
CIE-LCHlch(27.03, 75.35, 304.09°)
OKLaboklab(38.93% 0.0284 -0.1801)
OKLCHoklch(38.93% 0.182 279)
XYZxyz(8.9783, 5.1046, 34.6876)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382AA2 #94A22A
analogous
#2A58A2 #382AA2 #742AA2
triadic
#382AA2 #A2382A #2AA238
tetradic
#382AA2 #A22A58 #94A22A #2AA274
square
#382AA2 #A22A58 #94A22A #2AA274
split-complementary
#382AA2 #A2742A #58A22A
monochromatic
#161141 #271D71 #382AA2 #4D3DCD #7A6DD9

Accessibility & contrast

On white

10.39
#382AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#382AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382AA2
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382AA2#FFFFFF#000000##FFFFFF
##382AA21.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #382aa2;
/* rgb */ color: rgb(56, 42, 162);
/* oklch */ color: oklch(38.9% 0.182 279.0);
Tailwind
colors: {
  custom: {
    50: '#7d66bf',
    500: '#382aa2',
    950: '#000000',
  },
}
SCSS
$custom: #382aa2;
$custom-light: #7d66bf;
$custom-dark: #000000;
JSON
{
  "hex": "#382aa2",
  "rgb": {
    "r": 56,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 247,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.38928,
    "c": 0.18237,
    "h": 279
  },
  "luminance": 0.05105
}

Semantic roles & 50–950 ramp

primary
#382AA2
secondary
#B6C068
accent
#E246D0
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #382AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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