#382AA6#382AA6

#382AA6 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.3% C 0.187 H 278.5°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#382AA6
RGBrgb(56, 42, 166)
HSLhsl(247, 60%, 41%)
HSVhsv(247, 75%, 65%)
CMYKcmyk(66.3%, 74.7%, 0%, 34.9%)
CIE-LABlab(27.43, 43.52, -64.16)
CIE-LCHlch(27.43, 77.53, 304.15°)
OKLaboklab(39.33% 0.0275 -0.1853)
OKLCHoklch(39.33% 0.187 278.5)
XYZxyz(9.3396, 5.2491, 36.5900)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382AA6 #98A62A
analogous
#2A5AA6 #382AA6 #762AA6
triadic
#382AA6 #A6382A #2AA638
tetradic
#382AA6 #A62A5A #98A62A #2AA676
square
#382AA6 #A62A5A #98A62A #2AA676
split-complementary
#382AA6 #A6762A #5AA62A
monochromatic
#171144 #281E75 #382AA6 #4F3FCE #7C70DB

Accessibility & contrast

On white

10.24
#382AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#382AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382AA6
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382AA6#FFFFFF#000000##FFFFFF
##382AA61.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#003CA4
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #382aa6;
/* rgb */ color: rgb(56, 42, 166);
/* oklch */ color: oklch(39.3% 0.187 278.5);
Tailwind
colors: {
  custom: {
    50: '#7e66c2',
    500: '#382aa6',
    950: '#000000',
  },
}
SCSS
$custom: #382aa6;
$custom-light: #7e66c2;
$custom-dark: #000000;
JSON
{
  "hex": "#382aa6",
  "rgb": {
    "r": 56,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 246.774,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39334,
    "c": 0.18732,
    "h": 278.5
  },
  "luminance": 0.0525
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #382AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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