#382CA2#382CA2

#382CA2 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.2% C 0.180 H 278.6°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#382CA2
RGBrgb(56, 44, 162)
HSLhsl(246, 57%, 40%)
HSVhsv(246, 73%, 64%)
CMYKcmyk(65.4%, 72.8%, 0%, 36.5%)
CIE-LABlab(27.44, 41.11, -61.74)
CIE-LCHlch(27.44, 74.17, 303.66°)
OKLaboklab(39.22% 0.0271 -0.1782)
OKLCHoklch(39.22% 0.18 278.6)
XYZxyz(9.0511, 5.2500, 34.7118)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382CA2 #96A22C
analogous
#2C5BA2 #382CA2 #732CA2
triadic
#382CA2 #A2382C #2CA238
tetradic
#382CA2 #A22C5B #96A22C #2CA273
square
#382CA2 #A22C5B #96A22C #2CA273
split-complementary
#382CA2 #A2732C #5BA22C
monochromatic
#171242 #271F72 #382CA2 #4E40CB #7B70D8

Accessibility & contrast

On white

10.24
#382CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#382CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382CA2
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382CA2#FFFFFF#000000##FFFFFF
##382CA21.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #382ca2;
/* rgb */ color: rgb(56, 44, 162);
/* oklch */ color: oklch(39.2% 0.180 278.6);
Tailwind
colors: {
  custom: {
    50: '#7d67bf',
    500: '#382ca2',
    950: '#000000',
  },
}
SCSS
$custom: #382ca2;
$custom-light: #7d67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#382ca2",
  "rgb": {
    "r": 56,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 246.102,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39216,
    "c": 0.18025,
    "h": 278.6
  },
  "luminance": 0.05251
}

Semantic roles & 50–950 ramp

primary
#382CA2
secondary
#B7BF6A
accent
#E147D1
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #382CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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