#382E9D#382E9D

#382E9D is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.172 H 278.9°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#382E9D
RGBrgb(56, 46, 157)
HSLhsl(245, 55%, 40%)
HSVhsv(245, 71%, 62%)
CMYKcmyk(64.3%, 70.7%, 0%, 38.4%)
CIE-LABlab(27.38, 38.30, -58.80)
CIE-LCHlch(27.38, 70.17, 303.08°)
OKLaboklab(39.03% 0.0265 -0.1696)
OKLCHoklch(39.03% 0.172 278.9)
XYZxyz(8.6917, 5.2284, 32.4429)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382E9D #939D2E
analogous
#2E5C9D #382E9D #6F2E9D
triadic
#382E9D #9D382E #2E9D38
tetradic
#382E9D #9D2E5C #939D2E #2E9D6F
square
#382E9D #9D2E5C #939D2E #2E9D6F
split-complementary
#382E9D #9D6F2E #5C9D2E
monochromatic
#16123E #27206E #382E9D #4D41C7 #7970D5

Accessibility & contrast

On white

10.26
#382E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#382E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382E9D
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382E9D#FFFFFF#000000##FFFFFF
##382E9D1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#003C9B
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #382e9d;
/* rgb */ color: rgb(56, 46, 157);
/* oklch */ color: oklch(39.0% 0.172 278.9);
Tailwind
colors: {
  custom: {
    50: '#7b68bb',
    500: '#382e9d',
    950: '#000000',
  },
}
SCSS
$custom: #382e9d;
$custom-light: #7b68bb;
$custom-dark: #000000;
JSON
{
  "hex": "#382e9d",
  "rgb": {
    "r": 56,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 245.405,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39027,
    "c": 0.17167,
    "h": 278.9
  },
  "luminance": 0.05229
}

Semantic roles & 50–950 ramp

primary
#382E9D
secondary
#B5BD6A
accent
#DE4AD1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #382E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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