#382AA5#382AA5

#382AA5 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.2% C 0.186 H 278.6°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#382AA5
RGBrgb(56, 42, 165)
HSLhsl(247, 59%, 41%)
HSVhsv(247, 75%, 65%)
CMYKcmyk(66.1%, 74.5%, 0%, 35.3%)
CIE-LABlab(27.33, 43.20, -63.73)
CIE-LCHlch(27.33, 76.99, 304.13°)
OKLaboklab(39.23% 0.0278 -0.184)
OKLCHoklch(39.23% 0.186 278.6)
XYZxyz(9.2482, 5.2125, 36.1088)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382AA5 #97A52A
analogous
#2A5AA5 #382AA5 #752AA5
triadic
#382AA5 #A5382A #2AA538
tetradic
#382AA5 #A52A5A #97A52A #2AA575
square
#382AA5 #A52A5A #97A52A #2AA575
split-complementary
#382AA5 #A5752A #5AA52A
monochromatic
#171143 #271E74 #382AA5 #4F3ECE #7B6FDA

Accessibility & contrast

On white

10.28
#382AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #382AA5
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382AA5#FFFFFF#000000##FFFFFF
##382AA51.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#003CA3
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #382aa5;
/* rgb */ color: rgb(56, 42, 165);
/* oklch */ color: oklch(39.2% 0.186 278.6);
Tailwind
colors: {
  custom: {
    50: '#7d66c1',
    500: '#382aa5',
    950: '#000000',
  },
}
SCSS
$custom: #382aa5;
$custom-light: #7d66c1;
$custom-dark: #000000;
JSON
{
  "hex": "#382aa5",
  "rgb": {
    "r": 56,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 246.829,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39232,
    "c": 0.18608,
    "h": 278.6
  },
  "luminance": 0.05213
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #382AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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