#382D87#382D87

#382D87 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.144 H 282.3°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#382D87
RGBrgb(56, 45, 135)
HSLhsl(247, 50%, 35%)
HSVhsv(247, 67%, 53%)
CMYKcmyk(58.5%, 66.7%, 0%, 47.1%)
CIE-LABlab(25.16, 31.59, -48.86)
CIE-LCHlch(25.16, 58.18, 302.89°)
OKLaboklab(36.81% 0.0305 -0.1405)
OKLCHoklch(36.81% 0.144 282.3)
XYZxyz(6.9411, 4.4664, 23.4133)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382D87 #7C872D
analogous
#2D4F87 #382D87 #652D87
triadic
#382D87 #87382D #2D8738
tetradic
#382D87 #872D4F #7C872D #2D8765
square
#382D87 #872D4F #7C872D #2D8765
split-complementary
#382D87 #87652D #4F872D
monochromatic
#120E2B #251E59 #382D87 #4B3CB5 #7063CB

Accessibility & contrast

On white

11.09
#382D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#382D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382D87
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382D87#FFFFFF#000000##FFFFFF
##382D871.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#0E4456
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #382d87;
/* rgb */ color: rgb(56, 45, 135);
/* oklch */ color: oklch(36.8% 0.144 282.3);
Tailwind
colors: {
  custom: {
    50: '#7767ab',
    500: '#382d87',
    950: '#000000',
  },
}
SCSS
$custom: #382d87;
$custom-light: #7767ab;
$custom-dark: #000000;
JSON
{
  "hex": "#382d87",
  "rgb": {
    "r": 56,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 247.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36813,
    "c": 0.14375,
    "h": 282.3
  },
  "luminance": 0.04467
}

Semantic roles & 50–950 ramp

primary
#382D87
secondary
#A7B25E
accent
#DA4EC8
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #382D87

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

Preview Lab → · Contrast checker → · Palette generator →

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