#382D97#382D97

#382D97 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.165 H 279.9°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#382D97
RGBrgb(56, 45, 151)
HSLhsl(246, 54%, 38%)
HSVhsv(246, 70%, 59%)
CMYKcmyk(62.9%, 70.2%, 0%, 40.8%)
CIE-LABlab(26.60, 36.91, -56.41)
CIE-LCHlch(26.60, 67.41, 303.20°)
OKLaboklab(38.3% 0.0283 -0.1626)
OKLCHoklch(38.3% 0.165 279.9)
XYZxyz(8.1534, 4.9513, 29.7982)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382D97 #8C972D
analogous
#2D5797 #382D97 #6D2D97
triadic
#382D97 #97382D #2D9738
tetradic
#382D97 #972D57 #8C972D #2D976D
square
#382D97 #972D57 #8C972D #2D976D
split-complementary
#382D97 #976D2D #57972D
monochromatic
#151139 #271F68 #382D97 #4A3CC5 #766BD3

Accessibility & contrast

On white

10.55
#382D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#382D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382D97
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382D97#FFFFFF#000000##FFFFFF
##382D971.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #382d97;
/* rgb */ color: rgb(56, 45, 151);
/* oklch */ color: oklch(38.3% 0.165 279.9);
Tailwind
colors: {
  custom: {
    50: '#7a67b7',
    500: '#382d97',
    950: '#000000',
  },
}
SCSS
$custom: #382d97;
$custom-light: #7a67b7;
$custom-dark: #000000;
JSON
{
  "hex": "#382d97",
  "rgb": {
    "r": 56,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 246.226,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38295,
    "c": 0.16506,
    "h": 279.9
  },
  "luminance": 0.04952
}

Semantic roles & 50–950 ramp

primary
#382D97
secondary
#B1BA66
accent
#DD4ACE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #382D97

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

Preview Lab → · Contrast checker → · Palette generator →

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