#382AAB#382AAB

#382AAB is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.8% C 0.193 H 277.9°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#382AAB
RGBrgb(56, 42, 171)
HSLhsl(247, 61%, 42%)
HSVhsv(247, 75%, 67%)
CMYKcmyk(67.3%, 75.4%, 0%, 32.9%)
CIE-LABlab(27.94, 45.11, -66.34)
CIE-LCHlch(27.94, 80.22, 304.21°)
OKLaboklab(39.85% 0.0264 -0.1916)
OKLCHoklch(39.85% 0.193 277.9)
XYZxyz(9.8072, 5.4361, 39.0526)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382AAB #9DAB2A
analogous
#2A5CAB #382AAB #792AAB
triadic
#382AAB #AB382A #2AAB38
tetradic
#382AAB #AB2A5C #9DAB2A #2AAB79
square
#382AAB #AB2A5C #9DAB2A #2AAB79
split-complementary
#382AAB #AB792A #5CAB2A
monochromatic
#181249 #281E7A #382AAB #5142D1 #7E73DD

Accessibility & contrast

On white

10.06
#382AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#382AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382AAB
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382AAB#FFFFFF#000000##FFFFFF
##382AAB1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#003DA9
Tritanopia (blue-blind)
#004F69
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #382aab;
/* rgb */ color: rgb(56, 42, 171);
/* oklch */ color: oklch(39.8% 0.193 277.9);
Tailwind
colors: {
  custom: {
    50: '#7f66c5',
    500: '#382aab',
    950: '#000000',
  },
}
SCSS
$custom: #382aab;
$custom-light: #7f66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#382aab",
  "rgb": {
    "r": 56,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 246.512,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39847,
    "c": 0.19343,
    "h": 277.9
  },
  "luminance": 0.05437
}

Semantic roles & 50–950 ramp

primary
#382AAB
secondary
#BAC46D
accent
#E444D2
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #382AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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