#382C98#382C98

#382C98 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.2% C 0.168 H 279.9°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#382C98
RGBrgb(56, 44, 152)
HSLhsl(247, 55%, 38%)
HSVhsv(247, 71%, 60%)
CMYKcmyk(63.2%, 71.1%, 0%, 40.4%)
CIE-LABlab(26.47, 37.84, -57.22)
CIE-LCHlch(26.47, 68.60, 303.47°)
OKLaboklab(38.24% 0.0289 -0.165)
OKLCHoklch(38.24% 0.168 279.9)
XYZxyz(8.1973, 4.9085, 30.2151)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382C98 #8C982C
analogous
#2C5698 #382C98 #6E2C98
triadic
#382C98 #98382C #2C9838
tetradic
#382C98 #982C56 #8C982C #2C986E
square
#382C98 #982C56 #8C982C #2C986E
split-complementary
#382C98 #986E2C #56982C
monochromatic
#151139 #271E69 #382C98 #4A3BC6 #766AD4

Accessibility & contrast

On white

10.60
#382C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#382C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382C98
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382C98#FFFFFF#000000##FFFFFF
##382C981.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003A96
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #382c98;
/* rgb */ color: rgb(56, 44, 152);
/* oklch */ color: oklch(38.2% 0.168 279.9);
Tailwind
colors: {
  custom: {
    50: '#7b66b7',
    500: '#382c98',
    950: '#000000',
  },
}
SCSS
$custom: #382c98;
$custom-light: #7b66b7;
$custom-dark: #000000;
JSON
{
  "hex": "#382c98",
  "rgb": {
    "r": 56,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 246.667,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38236,
    "c": 0.16753,
    "h": 279.9
  },
  "luminance": 0.04909
}

Semantic roles & 50–950 ramp

primary
#382C98
secondary
#B1BB65
accent
#DE49CE
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #382C98

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

Preview Lab → · Contrast checker → · Palette generator →

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