#382D99#382D99

#382D99 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.168 H 279.6°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#382D99
RGBrgb(56, 45, 153)
HSLhsl(246, 55%, 39%)
HSVhsv(246, 71%, 60%)
CMYKcmyk(63.4%, 70.6%, 0%, 40%)
CIE-LABlab(26.78, 37.57, -57.33)
CIE-LCHlch(26.78, 68.54, 303.24°)
OKLaboklab(38.49% 0.028 -0.1653)
OKLCHoklch(38.49% 0.168 279.6)
XYZxyz(8.3172, 5.0168, 30.6609)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382D99 #8E992D
analogous
#2D5899 #382D99 #6E2D99
triadic
#382D99 #99382D #2D9938
tetradic
#382D99 #992D58 #8E992D #2D996E
square
#382D99 #992D58 #8E992D #2D996E
split-complementary
#382D99 #996E2D #58992D
monochromatic
#15113A #271F6A #382D99 #4B3DC6 #776CD4

Accessibility & contrast

On white

10.48
#382D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#382D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382D99
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382D99#FFFFFF#000000##FFFFFF
##382D991.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#003B97
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #382d99;
/* rgb */ color: rgb(56, 45, 153);
/* oklch */ color: oklch(38.5% 0.168 279.6);
Tailwind
colors: {
  custom: {
    50: '#7b67b8',
    500: '#382d99',
    950: '#000000',
  },
}
SCSS
$custom: #382d99;
$custom-light: #7b67b8;
$custom-dark: #000000;
JSON
{
  "hex": "#382d99",
  "rgb": {
    "r": 56,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 246.111,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38487,
    "c": 0.16766,
    "h": 279.6
  },
  "luminance": 0.05017
}

Semantic roles & 50–950 ramp

primary
#382D99
secondary
#B2BB67
accent
#DE4ACF
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #382D99

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

Preview Lab → · Contrast checker → · Palette generator →

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