#382F87#382F87

#382F87 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.141 H 281.7°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#382F87
RGBrgb(56, 47, 135)
HSLhsl(246, 48%, 36%)
HSVhsv(246, 65%, 53%)
CMYKcmyk(58.5%, 65.2%, 0%, 47.1%)
CIE-LABlab(25.63, 30.33, -48.09)
CIE-LCHlch(25.63, 56.85, 302.24°)
OKLaboklab(37.16% 0.0285 -0.1382)
OKLCHoklch(37.16% 0.141 281.7)
XYZxyz(7.0192, 4.6226, 23.4393)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382F87 #7E872F
analogous
#2F5287 #382F87 #642F87
triadic
#382F87 #87382F #2F8738
tetradic
#382F87 #872F52 #7E872F #2F8764
square
#382F87 #872F52 #7E872F #2F8764
split-complementary
#382F87 #87642F #52872F
monochromatic
#120F2C #251F5A #382F87 #4B3FB4 #7166CA

Accessibility & contrast

On white

10.91
#382F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#382F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382F87
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382F87#FFFFFF#000000##FFFFFF
##382F871.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#0D4556
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #382f87;
/* rgb */ color: rgb(56, 47, 135);
/* oklch */ color: oklch(37.2% 0.141 281.7);
Tailwind
colors: {
  custom: {
    50: '#7768ab',
    500: '#382f87',
    950: '#000000',
  },
}
SCSS
$custom: #382f87;
$custom-light: #7768ab;
$custom-dark: #000000;
JSON
{
  "hex": "#382f87",
  "rgb": {
    "r": 56,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 246.136,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37158,
    "c": 0.14113,
    "h": 281.7
  },
  "luminance": 0.04623
}

Semantic roles & 50–950 ramp

primary
#382F87
secondary
#A9B161
accent
#D850CA
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #382F87

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

Preview Lab → · Contrast checker → · Palette generator →

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