#382BA2#382BA2

#382BA2 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.181 H 278.8°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#382BA2
RGBrgb(56, 43, 162)
HSLhsl(247, 58%, 40%)
HSVhsv(247, 73%, 64%)
CMYKcmyk(65.4%, 73.5%, 0%, 36.5%)
CIE-LABlab(27.23, 41.67, -62.07)
CIE-LCHlch(27.23, 74.77, 303.88°)
OKLaboklab(39.07% 0.0277 -0.1792)
OKLCHoklch(39.07% 0.181 278.8)
XYZxyz(9.0143, 5.1764, 34.6995)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382BA2 #95A22B
analogous
#2B59A2 #382BA2 #742BA2
triadic
#382BA2 #A2382B #2BA238
tetradic
#382BA2 #A22B59 #95A22B #2BA274
square
#382BA2 #A22B59 #95A22B #2BA274
split-complementary
#382BA2 #A2742B #59A22B
monochromatic
#171141 #271E72 #382BA2 #4E3ECC #7A6FD9

Accessibility & contrast

On white

10.32
#382BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#382BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382BA2
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382BA2#FFFFFF#000000##FFFFFF
##382BA21.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #382ba2;
/* rgb */ color: rgb(56, 43, 162);
/* oklch */ color: oklch(39.1% 0.181 278.8);
Tailwind
colors: {
  custom: {
    50: '#7d66bf',
    500: '#382ba2',
    950: '#000000',
  },
}
SCSS
$custom: #382ba2;
$custom-light: #7d66bf;
$custom-dark: #000000;
JSON
{
  "hex": "#382ba2",
  "rgb": {
    "r": 56,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 246.555,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39071,
    "c": 0.18131,
    "h": 278.8
  },
  "luminance": 0.05177
}

Semantic roles & 50–950 ramp

primary
#382BA2
secondary
#B6C069
accent
#E147D0
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #382BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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