#382EA2#382EA2

#382EA2 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.178 H 278.3°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#382EA2
RGBrgb(56, 46, 162)
HSLhsl(245, 56%, 41%)
HSVhsv(245, 72%, 64%)
CMYKcmyk(65.4%, 71.6%, 0%, 36.5%)
CIE-LABlab(27.85, 39.95, -61.05)
CIE-LCHlch(27.85, 72.96, 303.20°)
OKLaboklab(39.51% 0.0257 -0.1762)
OKLCHoklch(39.51% 0.178 278.3)
XYZxyz(9.1274, 5.4026, 34.7372)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382EA2 #98A22E
analogous
#2E5EA2 #382EA2 #722EA2
triadic
#382EA2 #A2382E #2EA238
tetradic
#382EA2 #A22E5E #98A22E #2EA272
square
#382EA2 #A22E5E #98A22E #2EA272
split-complementary
#382EA2 #A2722E #5EA22E
monochromatic
#171343 #282072 #382EA2 #4F43CA #7C73D7

Accessibility & contrast

On white

10.09
#382EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#382EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382EA2
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382EA2#FFFFFF#000000##FFFFFF
##382EA21.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#003DA0
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #382ea2;
/* rgb */ color: rgb(56, 46, 162);
/* oklch */ color: oklch(39.5% 0.178 278.3);
Tailwind
colors: {
  custom: {
    50: '#7d68bf',
    500: '#382ea2',
    950: '#000000',
  },
}
SCSS
$custom: #382ea2;
$custom-light: #7d68bf;
$custom-dark: #000000;
JSON
{
  "hex": "#382ea2",
  "rgb": {
    "r": 56,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 245.172,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39513,
    "c": 0.17807,
    "h": 278.3
  },
  "luminance": 0.05403
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #382EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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