#382CA5#382CA5

#382CA5 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.184 H 278.3°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#382CA5
RGBrgb(56, 44, 165)
HSLhsl(246, 58%, 41%)
HSVhsv(246, 73%, 65%)
CMYKcmyk(66.1%, 73.3%, 0%, 35.3%)
CIE-LABlab(27.73, 42.08, -63.07)
CIE-LCHlch(27.73, 75.82, 303.71°)
OKLaboklab(39.52% 0.0265 -0.1821)
OKLCHoklch(39.52% 0.184 278.3)
XYZxyz(9.3209, 5.3580, 36.1330)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382CA5 #99A52C
analogous
#2C5CA5 #382CA5 #742CA5
triadic
#382CA5 #A5382C #2CA538
tetradic
#382CA5 #A52C5C #99A52C #2CA574
square
#382CA5 #A52C5C #99A52C #2CA574
split-complementary
#382CA5 #A5742C #5CA52C
monochromatic
#171244 #281F75 #382CA5 #4F42CD #7C72D9

Accessibility & contrast

On white

10.14
#382CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#382CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382CA5
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382CA5#FFFFFF#000000##FFFFFF
##382CA51.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#003CA3
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #382ca5;
/* rgb */ color: rgb(56, 44, 165);
/* oklch */ color: oklch(39.5% 0.184 278.3);
Tailwind
colors: {
  custom: {
    50: '#7d67c1',
    500: '#382ca5',
    950: '#000000',
  },
}
SCSS
$custom: #382ca5;
$custom-light: #7d67c1;
$custom-dark: #000000;
JSON
{
  "hex": "#382ca5",
  "rgb": {
    "r": 56,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 245.95,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39516,
    "c": 0.184,
    "h": 278.3
  },
  "luminance": 0.05359
}

Semantic roles & 50–950 ramp

primary
#382CA5
secondary
#B8C16C
accent
#E147D2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #382CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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