#382BAB#382BAB

#382BAB is a dark, vivid blue. Relative luminance 0.055; OKLCH L 40.0% C 0.192 H 277.7°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#382BAB
RGBrgb(56, 43, 171)
HSLhsl(246, 60%, 42%)
HSVhsv(246, 75%, 67%)
CMYKcmyk(67.3%, 74.9%, 0%, 32.9%)
CIE-LABlab(28.14, 44.56, -66.02)
CIE-LCHlch(28.14, 79.65, 304.02°)
OKLaboklab(39.98% 0.0258 -0.1907)
OKLCHoklch(39.98% 0.192 277.7)
XYZxyz(9.8431, 5.5079, 39.0646)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382BAB #9EAB2B
analogous
#2B5EAB #382BAB #782BAB
triadic
#382BAB #AB382B #2BAB38
tetradic
#382BAB #AB2B5E #9EAB2B #2BAB78
square
#382BAB #AB2B5E #9EAB2B #2BAB78
split-complementary
#382BAB #AB782B #5EAB2B
monochromatic
#181249 #281F7A #382BAB #5243D0 #7F74DC

Accessibility & contrast

On white

9.99
#382BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#382BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382BAB
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382BAB#FFFFFF#000000##FFFFFF
##382BAB1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#003DA9
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #382bab;
/* rgb */ color: rgb(56, 43, 171);
/* oklch */ color: oklch(40.0% 0.192 277.7);
Tailwind
colors: {
  custom: {
    50: '#7f67c5',
    500: '#382bab',
    950: '#000000',
  },
}
SCSS
$custom: #382bab;
$custom-light: #7f67c5;
$custom-dark: #000000;
JSON
{
  "hex": "#382bab",
  "rgb": {
    "r": 56,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 246.094,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39983,
    "c": 0.19244,
    "h": 277.7
  },
  "luminance": 0.05509
}

Semantic roles & 50–950 ramp

primary
#382BAB
secondary
#BBC46E
accent
#E345D3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #382BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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