#382D9E#382D9E

#382D9E is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.174 H 279.0°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#382D9E
RGBrgb(56, 45, 158)
HSLhsl(246, 56%, 40%)
HSVhsv(246, 72%, 62%)
CMYKcmyk(64.6%, 71.5%, 0%, 38%)
CIE-LABlab(27.26, 39.22, -59.60)
CIE-LCHlch(27.26, 71.35, 303.35°)
OKLaboklab(38.97% 0.0271 -0.172)
OKLCHoklch(38.97% 0.174 279)
XYZxyz(8.7389, 5.1855, 32.8815)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382D9E #939E2D
analogous
#2D5A9E #382D9E #712D9E
triadic
#382D9E #9E382D #2D9E38
tetradic
#382D9E #9E2D5A #939E2D #2D9E71
square
#382D9E #9E2D5A #939E2D #2D9E71
split-complementary
#382D9E #9E712D #5A9E2D
monochromatic
#16123F #271F6E #382D9E #4D40C9 #796FD6

Accessibility & contrast

On white

10.31
#382D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#382D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382D9E
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382D9E#FFFFFF#000000##FFFFFF
##382D9E1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#003C9C
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #382d9e;
/* rgb */ color: rgb(56, 45, 158);
/* oklch */ color: oklch(39.0% 0.174 279.0);
Tailwind
colors: {
  custom: {
    50: '#7c67bc',
    500: '#382d9e',
    950: '#000000',
  },
}
SCSS
$custom: #382d9e;
$custom-light: #7c67bc;
$custom-dark: #000000;
JSON
{
  "hex": "#382d9e",
  "rgb": {
    "r": 56,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 245.841,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38971,
    "c": 0.17409,
    "h": 279
  },
  "luminance": 0.05186
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #382D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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