#382DA1#382DA1

#382DA1 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.178 H 278.6°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#382DA1
RGBrgb(56, 45, 161)
HSLhsl(246, 56%, 40%)
HSVhsv(246, 72%, 63%)
CMYKcmyk(65.2%, 72%, 0%, 36.9%)
CIE-LABlab(27.55, 40.20, -60.95)
CIE-LCHlch(27.55, 73.01, 303.41°)
OKLaboklab(39.27% 0.0266 -0.1759)
OKLCHoklch(39.27% 0.178 278.6)
XYZxyz(9.0002, 5.2900, 34.2581)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382DA1 #96A12D
analogous
#2D5CA1 #382DA1 #722DA1
triadic
#382DA1 #A1382D #2DA138
tetradic
#382DA1 #A12D5C #96A12D #2DA172
square
#382DA1 #A12D5C #96A12D #2DA172
split-complementary
#382DA1 #A1722D #5CA12D
monochromatic
#171241 #272071 #382DA1 #4E41CA #7B71D7

Accessibility & contrast

On white

10.20
#382DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #382DA1
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382DA1#FFFFFF#000000##FFFFFF
##382DA11.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A4
Deuteranopia (green-blind)
#003C9F
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #382da1;
/* rgb */ color: rgb(56, 45, 161);
/* oklch */ color: oklch(39.3% 0.178 278.6);
Tailwind
colors: {
  custom: {
    50: '#7c67be',
    500: '#382da1',
    950: '#000000',
  },
}
SCSS
$custom: #382da1;
$custom-light: #7c67be;
$custom-dark: #000000;
JSON
{
  "hex": "#382da1",
  "rgb": {
    "r": 56,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 245.69,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39265,
    "c": 0.1779,
    "h": 278.6
  },
  "luminance": 0.05291
}

Semantic roles & 50–950 ramp

primary
#382DA1
secondary
#B7BF6B
accent
#E048D1
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #382DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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