#382AA8#382AA8

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

Color values

HEX#382AA8
RGBrgb(56, 42, 168)
HSLhsl(247, 60%, 41%)
HSVhsv(247, 75%, 66%)
CMYKcmyk(66.7%, 75%, 0%, 34.1%)
CIE-LABlab(27.64, 44.15, -65.04)
CIE-LCHlch(27.64, 78.61, 304.17°)
OKLaboklab(39.54% 0.0271 -0.1878)
OKLCHoklch(39.54% 0.19 278.2)
XYZxyz(9.5245, 5.3230, 37.5637)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382AA8 #9AA82A
analogous
#2A5BA8 #382AA8 #772AA8
triadic
#382AA8 #A8382A #2AA838
tetradic
#382AA8 #A82A5B #9AA82A #2AA877
square
#382AA8 #A82A5B #9AA82A #2AA877
split-complementary
#382AA8 #A8772A #5BA82A
monochromatic
#171246 #281E77 #382AA8 #5040CF #7D71DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##382AA8#FFFFFF#000000##FFFFFF
##382AA81.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)
#0046AC
Deuteranopia (green-blind)
#003CA6
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #382aa8;
/* rgb */ color: rgb(56, 42, 168);
/* oklch */ color: oklch(39.5% 0.190 278.2);
Tailwind
colors: {
  custom: {
    50: '#7e66c3',
    500: '#382aa8',
    950: '#000000',
  },
}
SCSS
$custom: #382aa8;
$custom-light: #7e66c3;
$custom-dark: #000000;
JSON
{
  "hex": "#382aa8",
  "rgb": {
    "r": 56,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 246.667,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39539,
    "c": 0.18977,
    "h": 278.2
  },
  "luminance": 0.05324
}

Semantic roles & 50–950 ramp

primary
#382AA8
secondary
#B9C36B
accent
#E345D2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #382AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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