#382FA6#382FA6

#382FA6 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.1% C 0.182 H 277.7°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#382FA6
RGBrgb(56, 47, 166)
HSLhsl(245, 56%, 42%)
HSVhsv(245, 72%, 65%)
CMYKcmyk(66.3%, 71.7%, 0%, 34.9%)
CIE-LABlab(28.45, 40.68, -62.49)
CIE-LCHlch(28.45, 74.56, 303.06°)
OKLaboklab(40.06% 0.0243 -0.1804)
OKLCHoklch(40.06% 0.182 277.7)
XYZxyz(9.5281, 5.6262, 36.6528)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382FA6 #9DA62F
analogous
#2F62A6 #382FA6 #742FA6
triadic
#382FA6 #A6382F #2FA638
tetradic
#382FA6 #A62F62 #9DA62F #2FA674
square
#382FA6 #A62F62 #9DA62F #2FA674
split-complementary
#382FA6 #A6742F #62A62F
monochromatic
#181447 #282176 #382FA6 #5147CB #7E77D8

Accessibility & contrast

On white

9.88
#382FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#382FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382FA6
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382FA6#FFFFFF#000000##FFFFFF
##382FA61.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#003EA4
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #382fa6;
/* rgb */ color: rgb(56, 47, 166);
/* oklch */ color: oklch(40.1% 0.182 277.7);
Tailwind
colors: {
  custom: {
    50: '#7d69c2',
    500: '#382fa6',
    950: '#000000',
  },
}
SCSS
$custom: #382fa6;
$custom-light: #7d69c2;
$custom-dark: #000000;
JSON
{
  "hex": "#382fa6",
  "rgb": {
    "r": 56,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 244.538,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40057,
    "c": 0.18204,
    "h": 277.7
  },
  "luminance": 0.05627
}

Semantic roles & 50–950 ramp

primary
#382FA6
secondary
#BAC170
accent
#DF49D4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #382FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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