#382A97#382A97

#382A97 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.169 H 280.5°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#382A97
RGBrgb(56, 42, 151)
HSLhsl(248, 56%, 38%)
HSVhsv(248, 72%, 59%)
CMYKcmyk(62.9%, 72.2%, 0%, 40.8%)
CIE-LABlab(25.95, 38.68, -57.46)
CIE-LCHlch(25.95, 69.27, 303.95°)
OKLaboklab(37.84% 0.0307 -0.1657)
OKLCHoklch(37.84% 0.169 280.5)
XYZxyz(8.0430, 4.7305, 29.7614)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382A97 #89972A
analogous
#2A5397 #382A97 #6E2A97
triadic
#382A97 #97382A #2A9738
tetradic
#382A97 #972A53 #89972A #2A976E
square
#382A97 #972A53 #89972A #2A976E
split-complementary
#382A97 #976E2A #53972A
monochromatic
#140F37 #261D67 #382A97 #4A37C7 #7567D5

Accessibility & contrast

On white

10.79
#382A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #382A97
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382A97#FFFFFF#000000##FFFFFF
##382A971.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #382a97;
/* rgb */ color: rgb(56, 42, 151);
/* oklch */ color: oklch(37.8% 0.169 280.5);
Tailwind
colors: {
  custom: {
    50: '#7b65b7',
    500: '#382a97',
    950: '#000000',
  },
}
SCSS
$custom: #382a97;
$custom-light: #7b65b7;
$custom-dark: #000000;
JSON
{
  "hex": "#382a97",
  "rgb": {
    "r": 56,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 247.706,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37835,
    "c": 0.16851,
    "h": 280.5
  },
  "luminance": 0.04731
}

Semantic roles & 50–950 ramp

primary
#382A97
secondary
#AFBB62
accent
#E048CC
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #382A97

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

Preview Lab → · Contrast checker → · Palette generator →

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