#382D9D#382D9D

#382D9D is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.173 H 279.1°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#382D9D
RGBrgb(56, 45, 157)
HSLhsl(246, 55%, 40%)
HSVhsv(246, 71%, 62%)
CMYKcmyk(64.3%, 71.3%, 0%, 38.4%)
CIE-LABlab(27.16, 38.89, -59.15)
CIE-LCHlch(27.16, 70.79, 303.32°)
OKLaboklab(38.87% 0.0273 -0.1706)
OKLCHoklch(38.87% 0.173 279.1)
XYZxyz(8.6531, 5.1512, 32.4300)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382D9D #929D2D
analogous
#2D5A9D #382D9D #702D9D
triadic
#382D9D #9D382D #2D9D38
tetradic
#382D9D #9D2D5A #929D2D #2D9D70
square
#382D9D #9D2D5A #929D2D #2D9D70
split-complementary
#382D9D #9D702D #5A9D2D
monochromatic
#16123E #271F6D #382D9D #4D3FC8 #796FD6

Accessibility & contrast

On white

10.34
#382D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#382D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382D9D
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382D9D#FFFFFF#000000##FFFFFF
##382D9D1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#003C9B
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #382d9d;
/* rgb */ color: rgb(56, 45, 157);
/* oklch */ color: oklch(38.9% 0.173 279.1);
Tailwind
colors: {
  custom: {
    50: '#7c67bb',
    500: '#382d9d',
    950: '#000000',
  },
}
SCSS
$custom: #382d9d;
$custom-light: #7c67bb;
$custom-dark: #000000;
JSON
{
  "hex": "#382d9d",
  "rgb": {
    "r": 56,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 245.893,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38873,
    "c": 0.17281,
    "h": 279.1
  },
  "luminance": 0.05152
}

Semantic roles & 50–950 ramp

primary
#382D9D
secondary
#B5BD69
accent
#DF49D0
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #382D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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