#382EA8#382EA8

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

Color values

HEX#382EA8
RGBrgb(56, 46, 168)
HSLhsl(245, 57%, 42%)
HSVhsv(245, 73%, 66%)
CMYKcmyk(66.7%, 72.6%, 0%, 34.1%)
CIE-LABlab(28.44, 41.91, -63.72)
CIE-LCHlch(28.44, 76.27, 303.34°)
OKLaboklab(40.11% 0.0246 -0.184)
OKLCHoklch(40.11% 0.186 277.6)
XYZxyz(9.6735, 5.6211, 37.6134)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382EA8 #9EA82E
analogous
#2E61A8 #382EA8 #752EA8
triadic
#382EA8 #A8382E #2EA838
tetradic
#382EA8 #A82E61 #9EA82E #2EA875
square
#382EA8 #A82E61 #9EA82E #2EA875
split-complementary
#382EA8 #A8752E #61A82E
monochromatic
#181448 #282178 #382EA8 #5247CD #7F77DA

Accessibility & contrast

On white

9.89
#382EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#382EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382EA8
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382EA8#FFFFFF#000000##FFFFFF
##382EA81.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#003EA6
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #382ea8;
/* rgb */ color: rgb(56, 46, 168);
/* oklch */ color: oklch(40.1% 0.186 277.6);
Tailwind
colors: {
  custom: {
    50: '#7e68c3',
    500: '#382ea8',
    950: '#000000',
  },
}
SCSS
$custom: #382ea8;
$custom-light: #7e68c3;
$custom-dark: #000000;
JSON
{
  "hex": "#382ea8",
  "rgb": {
    "r": 56,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 244.918,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40106,
    "c": 0.18564,
    "h": 277.6
  },
  "luminance": 0.05622
}

Semantic roles & 50–950 ramp

primary
#382EA8
secondary
#BBC270
accent
#E048D4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #382EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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