#382CA1#382CA1

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

Color values

HEX#382CA1
RGBrgb(56, 44, 161)
HSLhsl(246, 57%, 40%)
HSVhsv(246, 73%, 63%)
CMYKcmyk(65.2%, 72.7%, 0%, 36.9%)
CIE-LABlab(27.34, 40.78, -61.29)
CIE-LCHlch(27.34, 73.62, 303.64°)
OKLaboklab(39.12% 0.0273 -0.1769)
OKLCHoklch(39.12% 0.179 278.8)
XYZxyz(8.9625, 5.2146, 34.2455)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382CA1 #95A12C
analogous
#2C5AA1 #382CA1 #732CA1
triadic
#382CA1 #A1382C #2CA138
tetradic
#382CA1 #A12C5A #95A12C #2CA173
square
#382CA1 #A12C5A #95A12C #2CA173
split-complementary
#382CA1 #A1732C #5AA12C
monochromatic
#171241 #271F71 #382CA1 #4E40CB #7A70D8

Accessibility & contrast

On white

10.28
#382CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #382CA1
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382CA1#FFFFFF#000000##FFFFFF
##382CA11.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#003C9F
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #382ca1;
/* rgb */ color: rgb(56, 44, 161);
/* oklch */ color: oklch(39.1% 0.179 278.8);
Tailwind
colors: {
  custom: {
    50: '#7c67be',
    500: '#382ca1',
    950: '#000000',
  },
}
SCSS
$custom: #382ca1;
$custom-light: #7c67be;
$custom-dark: #000000;
JSON
{
  "hex": "#382ca1",
  "rgb": {
    "r": 56,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 246.154,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39117,
    "c": 0.179,
    "h": 278.8
  },
  "luminance": 0.05215
}

Semantic roles & 50–950 ramp

primary
#382CA1
secondary
#B6BF6A
accent
#E047D1
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #382CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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