#382BA4#382BA4

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

Color values

HEX#382BA4
RGBrgb(56, 43, 164)
HSLhsl(246, 58%, 41%)
HSVhsv(246, 74%, 64%)
CMYKcmyk(65.9%, 73.8%, 0%, 35.7%)
CIE-LABlab(27.43, 42.32, -62.96)
CIE-LCHlch(27.43, 75.86, 303.91°)
OKLaboklab(39.27% 0.0273 -0.1818)
OKLCHoklch(39.27% 0.184 278.6)
XYZxyz(9.1934, 5.2481, 35.6433)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382BA4 #97A42B
analogous
#2B5BA4 #382BA4 #742BA4
triadic
#382BA4 #A4382B #2BA438
tetradic
#382BA4 #A42B5B #97A42B #2BA474
square
#382BA4 #A42B5B #97A42B #2BA474
split-complementary
#382BA4 #A4742B #5BA42B
monochromatic
#171243 #271E74 #382BA4 #4F3FCD #7B70D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##382BA4#FFFFFF#000000##FFFFFF
##382BA41.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)
#0045A8
Deuteranopia (green-blind)
#003CA2
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #382ba4;
/* rgb */ color: rgb(56, 43, 164);
/* oklch */ color: oklch(39.3% 0.184 278.6);
Tailwind
colors: {
  custom: {
    50: '#7d66c0',
    500: '#382ba4',
    950: '#000000',
  },
}
SCSS
$custom: #382ba4;
$custom-light: #7d66c0;
$custom-dark: #000000;
JSON
{
  "hex": "#382ba4",
  "rgb": {
    "r": 56,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 246.446,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39272,
    "c": 0.18381,
    "h": 278.6
  },
  "luminance": 0.05249
}

Semantic roles & 50–950 ramp

primary
#382BA4
secondary
#B7C16A
accent
#E246D1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #382BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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