#382B87#382B87

#382B87 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.146 H 282.8°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#382B87
RGBrgb(56, 43, 135)
HSLhsl(248, 52%, 35%)
HSVhsv(248, 68%, 53%)
CMYKcmyk(58.5%, 68.1%, 0%, 47.1%)
CIE-LABlab(24.69, 32.84, -49.62)
CIE-LCHlch(24.69, 59.50, 303.50°)
OKLaboklab(36.48% 0.0324 -0.1427)
OKLCHoklch(36.48% 0.146 282.8)
XYZxyz(6.8666, 4.3173, 23.3885)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382B87 #7A872B
analogous
#2B4C87 #382B87 #662B87
triadic
#382B87 #87382B #2B8738
tetradic
#382B87 #872B4C #7A872B #2B8766
square
#382B87 #872B4C #7A872B #2B8766
split-complementary
#382B87 #87662B #4C872B
monochromatic
#110D2A #251C59 #382B87 #4B3AB5 #6F60CC

Accessibility & contrast

On white

11.27
#382B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#382B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382B87
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382B87#FFFFFF#000000##FFFFFF
##382B871.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#0E4255
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #382b87;
/* rgb */ color: rgb(56, 43, 135);
/* oklch */ color: oklch(36.5% 0.146 282.8);
Tailwind
colors: {
  custom: {
    50: '#7765ab',
    500: '#382b87',
    950: '#000000',
  },
}
SCSS
$custom: #382b87;
$custom-light: #7765ab;
$custom-dark: #000000;
JSON
{
  "hex": "#382b87",
  "rgb": {
    "r": 56,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 248.478,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36478,
    "c": 0.14635,
    "h": 282.8
  },
  "luminance": 0.04318
}

Semantic roles & 50–950 ramp

primary
#382B87
secondary
#A6B25B
accent
#DB4DC7
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #382B87

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

Preview Lab → · Contrast checker → · Palette generator →

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