#382D98#382D98

#382D98 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.4% C 0.166 H 279.7°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#382D98
RGBrgb(56, 45, 152)
HSLhsl(246, 54%, 39%)
HSVhsv(246, 70%, 60%)
CMYKcmyk(63.2%, 70.4%, 0%, 40.4%)
CIE-LABlab(26.69, 37.24, -56.87)
CIE-LCHlch(26.69, 67.98, 303.22°)
OKLaboklab(38.39% 0.0281 -0.164)
OKLCHoklch(38.39% 0.166 279.7)
XYZxyz(8.2350, 4.9839, 30.2277)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382D98 #8D982D
analogous
#2D5798 #382D98 #6D2D98
triadic
#382D98 #98382D #2D9838
tetradic
#382D98 #982D57 #8D982D #2D986D
square
#382D98 #982D57 #8D982D #2D986D
split-complementary
#382D98 #986D2D #57982D
monochromatic
#15113A #271F69 #382D98 #4B3DC5 #776CD3

Accessibility & contrast

On white

10.52
#382D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #382D98
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382D98#FFFFFF#000000##FFFFFF
##382D981.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #382d98;
/* rgb */ color: rgb(56, 45, 152);
/* oklch */ color: oklch(38.4% 0.166 279.7);
Tailwind
colors: {
  custom: {
    50: '#7b67b7',
    500: '#382d98',
    950: '#000000',
  },
}
SCSS
$custom: #382d98;
$custom-light: #7b67b7;
$custom-dark: #000000;
JSON
{
  "hex": "#382d98",
  "rgb": {
    "r": 56,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 246.168,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38391,
    "c": 0.16637,
    "h": 279.7
  },
  "luminance": 0.04985
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #382D98

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

Preview Lab → · Contrast checker → · Palette generator →

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