#382EA7#382EA7

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

Color values

HEX#382EA7
RGBrgb(56, 46, 167)
HSLhsl(245, 57%, 42%)
HSVhsv(245, 72%, 65%)
CMYKcmyk(66.5%, 72.5%, 0%, 34.5%)
CIE-LABlab(28.34, 41.59, -63.28)
CIE-LCHlch(28.34, 75.72, 303.31°)
OKLaboklab(40.01% 0.0248 -0.1827)
OKLCHoklch(40.01% 0.184 277.7)
XYZxyz(9.5807, 5.5840, 37.1246)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382EA7 #9DA72E
analogous
#2E60A7 #382EA7 #752EA7
triadic
#382EA7 #A7382E #2EA738
tetradic
#382EA7 #A72E60 #9DA72E #2EA775
square
#382EA7 #A72E60 #9DA72E #2EA775
split-complementary
#382EA7 #A7752E #60A72E
monochromatic
#181447 #282177 #382EA7 #5146CC #7E76D9

Accessibility & contrast

On white

9.92
#382EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #382EA7
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382EA7#FFFFFF#000000##FFFFFF
##382EA71.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #382ea7;
/* rgb */ color: rgb(56, 46, 167);
/* oklch */ color: oklch(40.0% 0.184 277.7);
Tailwind
colors: {
  custom: {
    50: '#7e68c2',
    500: '#382ea7',
    950: '#000000',
  },
}
SCSS
$custom: #382ea7;
$custom-light: #7e68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#382ea7",
  "rgb": {
    "r": 56,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 244.959,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40007,
    "c": 0.18439,
    "h": 277.7
  },
  "luminance": 0.05585
}

Semantic roles & 50–950 ramp

primary
#382EA7
secondary
#BAC170
accent
#E048D3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #382EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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