#382A98#382A98

#382A98 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.170 H 280.3°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#382A98
RGBrgb(56, 42, 152)
HSLhsl(248, 57%, 38%)
HSVhsv(248, 72%, 60%)
CMYKcmyk(63.2%, 72.4%, 0%, 40.4%)
CIE-LABlab(26.05, 39.01, -57.92)
CIE-LCHlch(26.05, 69.83, 303.96°)
OKLaboklab(37.93% 0.0305 -0.167)
OKLCHoklch(37.93% 0.17 280.3)
XYZxyz(8.1246, 4.7631, 30.1909)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382A98 #8A982A
analogous
#2A5398 #382A98 #6F2A98
triadic
#382A98 #98382A #2A9838
tetradic
#382A98 #982A53 #8A982A #2A986F
square
#382A98 #982A53 #8A982A #2A986F
split-complementary
#382A98 #986F2A #53982A
monochromatic
#151038 #261D68 #382A98 #4A37C8 #7567D5

Accessibility & contrast

On white

10.75
#382A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#382A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382A98
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382A98#FFFFFF#000000##FFFFFF
##382A981.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003996
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #382a98;
/* rgb */ color: rgb(56, 42, 152);
/* oklch */ color: oklch(37.9% 0.170 280.3);
Tailwind
colors: {
  custom: {
    50: '#7b65b7',
    500: '#382a98',
    950: '#000000',
  },
}
SCSS
$custom: #382a98;
$custom-light: #7b65b7;
$custom-dark: #000000;
JSON
{
  "hex": "#382a98",
  "rgb": {
    "r": 56,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 247.636,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37933,
    "c": 0.16979,
    "h": 280.3
  },
  "luminance": 0.04764
}

Semantic roles & 50–950 ramp

primary
#382A98
secondary
#B0BB62
accent
#E048CD
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #382A98

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

Preview Lab → · Contrast checker → · Palette generator →

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