#382A87#382A87

#382A87 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.148 H 283.1°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#382A87
RGBrgb(56, 42, 135)
HSLhsl(249, 53%, 35%)
HSVhsv(249, 69%, 53%)
CMYKcmyk(58.5%, 68.9%, 0%, 47.1%)
CIE-LABlab(24.47, 33.45, -49.99)
CIE-LCHlch(24.47, 60.15, 303.79°)
OKLaboklab(36.31% 0.0334 -0.1438)
OKLCHoklch(36.31% 0.148 283.1)
XYZxyz(6.8307, 4.2455, 23.3765)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382A87 #79872A
analogous
#2A4B87 #382A87 #662A87
triadic
#382A87 #87382A #2A8738
tetradic
#382A87 #872A4B #79872A #2A8766
square
#382A87 #872A4B #79872A #2A8766
split-complementary
#382A87 #87662A #4B872A
monochromatic
#110D2A #251B58 #382A87 #4B39B6 #6F5ECD

Accessibility & contrast

On white

11.36
#382A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#382A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382A87
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382A87#FFFFFF#000000##FFFFFF
##382A871.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #382a87;
/* rgb */ color: rgb(56, 42, 135);
/* oklch */ color: oklch(36.3% 0.148 283.1);
Tailwind
colors: {
  custom: {
    50: '#7865ab',
    500: '#382a87',
    950: '#000000',
  },
}
SCSS
$custom: #382a87;
$custom-light: #7865ab;
$custom-dark: #000000;
JSON
{
  "hex": "#382a87",
  "rgb": {
    "r": 56,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 249.032,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36314,
    "c": 0.14761,
    "h": 283.1
  },
  "luminance": 0.04246
}

Semantic roles & 50–950 ramp

primary
#382A87
secondary
#A5B35A
accent
#DC4CC6
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #382A87

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

Preview Lab → · Contrast checker → · Palette generator →

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