#382A9D#382A9D

#382A9D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.4% C 0.176 H 279.6°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#382A9D
RGBrgb(56, 42, 157)
HSLhsl(247, 58%, 39%)
HSVhsv(247, 73%, 62%)
CMYKcmyk(64.3%, 73.2%, 0%, 38.4%)
CIE-LABlab(26.54, 40.63, -60.18)
CIE-LCHlch(26.54, 72.61, 304.02°)
OKLaboklab(38.43% 0.0295 -0.1736)
OKLCHoklch(38.43% 0.176 279.6)
XYZxyz(8.5427, 4.9303, 32.3932)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382A9D #8F9D2A
analogous
#2A569D #382A9D #722A9D
triadic
#382A9D #9D382A #2A9D38
tetradic
#382A9D #9D2A56 #8F9D2A #2A9D72
square
#382A9D #9D2A56 #8F9D2A #2A9D72
split-complementary
#382A9D #9D722A #569D2A
monochromatic
#16103C #271D6D #382A9D #4B3ACA #776AD7

Accessibility & contrast

On white

10.57
#382A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#382A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382A9D
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382A9D#FFFFFF#000000##FFFFFF
##382A9D1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#003A9B
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #382a9d;
/* rgb */ color: rgb(56, 42, 157);
/* oklch */ color: oklch(38.4% 0.176 279.6);
Tailwind
colors: {
  custom: {
    50: '#7c65bb',
    500: '#382a9d',
    950: '#000000',
  },
}
SCSS
$custom: #382a9d;
$custom-light: #7c65bb;
$custom-dark: #000000;
JSON
{
  "hex": "#382a9d",
  "rgb": {
    "r": 56,
    "g": 42,
    "b": 157
  },
  "hsl": {
    "h": 247.304,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38427,
    "c": 0.17612,
    "h": 279.6
  },
  "luminance": 0.04931
}

Semantic roles & 50–950 ramp

primary
#382A9D
secondary
#B3BE65
accent
#E147CE
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #382A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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