#382FA7#382FA7

#382FA7 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.2% C 0.183 H 277.5°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#382FA7
RGBrgb(56, 47, 167)
HSLhsl(245, 56%, 42%)
HSVhsv(245, 72%, 65%)
CMYKcmyk(66.5%, 71.9%, 0%, 34.5%)
CIE-LABlab(28.55, 41.01, -62.94)
CIE-LCHlch(28.55, 75.12, 303.09°)
OKLaboklab(40.16% 0.0241 -0.1817)
OKLCHoklch(40.16% 0.183 277.5)
XYZxyz(9.6202, 5.6630, 37.1378)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382FA7 #9EA72F
analogous
#2F62A7 #382FA7 #742FA7
triadic
#382FA7 #A7382F #2FA738
tetradic
#382FA7 #A72F62 #9EA72F #2FA774
square
#382FA7 #A72F62 #9EA72F #2FA774
split-complementary
#382FA7 #A7742F #62A72F
monochromatic
#181447 #282277 #382FA7 #5248CB #7F78D9

Accessibility & contrast

On white

9.85
#382FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#382FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382FA7
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382FA7#FFFFFF#000000##FFFFFF
##382FA71.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#003EA5
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #382fa7;
/* rgb */ color: rgb(56, 47, 167);
/* oklch */ color: oklch(40.2% 0.183 277.5);
Tailwind
colors: {
  custom: {
    50: '#7d69c2',
    500: '#382fa7',
    950: '#000000',
  },
}
SCSS
$custom: #382fa7;
$custom-light: #7d69c2;
$custom-dark: #000000;
JSON
{
  "hex": "#382fa7",
  "rgb": {
    "r": 56,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 244.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40155,
    "c": 0.18331,
    "h": 277.5
  },
  "luminance": 0.05664
}

Semantic roles & 50–950 ramp

primary
#382FA7
secondary
#BBC171
accent
#DF48D4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #382FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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