#382E9B#382E9B

#382E9B is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.169 H 279.1°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#382E9B
RGBrgb(56, 46, 155)
HSLhsl(246, 54%, 39%)
HSVhsv(246, 70%, 61%)
CMYKcmyk(63.9%, 70.3%, 0%, 39.2%)
CIE-LABlab(27.19, 37.64, -57.89)
CIE-LCHlch(27.19, 69.05, 303.03°)
OKLaboklab(38.83% 0.0269 -0.1669)
OKLCHoklch(38.83% 0.169 279.1)
XYZxyz(8.5224, 5.1606, 31.5510)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382E9B #919B2E
analogous
#2E5A9B #382E9B #6F2E9B
triadic
#382E9B #9B382E #2E9B38
tetradic
#382E9B #9B2E5A #919B2E #2E9B6F
square
#382E9B #9B2E5A #919B2E #2E9B6F
split-complementary
#382E9B #9B6F2E #5A9B2E
monochromatic
#16123D #27206C #382E9B #4C40C6 #786FD4

Accessibility & contrast

On white

10.33
#382E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#382E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382E9B
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382E9B#FFFFFF#000000##FFFFFF
##382E9B1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003C99
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #382e9b;
/* rgb */ color: rgb(56, 46, 155);
/* oklch */ color: oklch(38.8% 0.169 279.1);
Tailwind
colors: {
  custom: {
    50: '#7b68b9',
    500: '#382e9b',
    950: '#000000',
  },
}
SCSS
$custom: #382e9b;
$custom-light: #7b68b9;
$custom-dark: #000000;
JSON
{
  "hex": "#382e9b",
  "rgb": {
    "r": 56,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 245.505,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38835,
    "c": 0.1691,
    "h": 279.1
  },
  "luminance": 0.05161
}

Semantic roles & 50–950 ramp

primary
#382E9B
secondary
#B4BC69
accent
#DE4AD0
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #382E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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