#382EA1#382EA1

#382EA1 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.177 H 278.4°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#382EA1
RGBrgb(56, 46, 161)
HSLhsl(245, 56%, 41%)
HSVhsv(245, 71%, 63%)
CMYKcmyk(65.2%, 71.4%, 0%, 36.9%)
CIE-LABlab(27.76, 39.62, -60.60)
CIE-LCHlch(27.76, 72.41, 303.17°)
OKLaboklab(39.42% 0.0258 -0.1749)
OKLCHoklch(39.42% 0.177 278.4)
XYZxyz(9.0388, 5.3672, 34.2710)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382EA1 #97A12E
analogous
#2E5EA1 #382EA1 #712EA1
triadic
#382EA1 #A1382E #2EA138
tetradic
#382EA1 #A12E5E #97A12E #2EA171
square
#382EA1 #A12E5E #97A12E #2EA171
split-complementary
#382EA1 #A1712E #5EA12E
monochromatic
#171342 #272071 #382EA1 #4F43C9 #7B73D7

Accessibility & contrast

On white

10.13
#382EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#382EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382EA1
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382EA1#FFFFFF#000000##FFFFFF
##382EA11.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #382ea1;
/* rgb */ color: rgb(56, 46, 161);
/* oklch */ color: oklch(39.4% 0.177 278.4);
Tailwind
colors: {
  custom: {
    50: '#7c68be',
    500: '#382ea1',
    950: '#000000',
  },
}
SCSS
$custom: #382ea1;
$custom-light: #7c68be;
$custom-dark: #000000;
JSON
{
  "hex": "#382ea1",
  "rgb": {
    "r": 56,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 245.217,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39415,
    "c": 0.1768,
    "h": 278.4
  },
  "luminance": 0.05368
}

Semantic roles & 50–950 ramp

primary
#382EA1
secondary
#B7BE6C
accent
#DF49D2
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #382EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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