#382CA3#382CA3

#382CA3 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.182 H 278.5°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#382CA3
RGBrgb(56, 44, 163)
HSLhsl(246, 57%, 41%)
HSVhsv(246, 73%, 64%)
CMYKcmyk(65.6%, 73%, 0%, 36.1%)
CIE-LABlab(27.53, 41.43, -62.18)
CIE-LCHlch(27.53, 74.72, 303.67°)
OKLaboklab(39.32% 0.0269 -0.1795)
OKLCHoklch(39.32% 0.182 278.5)
XYZxyz(9.1403, 5.2857, 35.1818)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382CA3 #97A32C
analogous
#2C5CA3 #382CA3 #732CA3
triadic
#382CA3 #A3382C #2CA338
tetradic
#382CA3 #A32C5C #97A32C #2CA373
square
#382CA3 #A32C5C #97A32C #2CA373
split-complementary
#382CA3 #A3732C #5CA32C
monochromatic
#171243 #271F73 #382CA3 #4F41CC #7B71D9

Accessibility & contrast

On white

10.21
#382CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#382CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382CA3
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382CA3#FFFFFF#000000##FFFFFF
##382CA31.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A7
Deuteranopia (green-blind)
#003CA1
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #382ca3;
/* rgb */ color: rgb(56, 44, 163);
/* oklch */ color: oklch(39.3% 0.182 278.5);
Tailwind
colors: {
  custom: {
    50: '#7d67bf',
    500: '#382ca3',
    950: '#000000',
  },
}
SCSS
$custom: #382ca3;
$custom-light: #7d67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#382ca3",
  "rgb": {
    "r": 56,
    "g": 44,
    "b": 163
  },
  "hsl": {
    "h": 246.05,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39316,
    "c": 0.18151,
    "h": 278.5
  },
  "luminance": 0.05286
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #382CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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