#383F9D#383F9D

#383F9D is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.0% C 0.151 H 274.6°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#383F9D
RGBrgb(56, 63, 157)
HSLhsl(236, 47%, 42%)
HSVhsv(236, 64%, 62%)
CMYKcmyk(64.3%, 59.9%, 0%, 38.4%)
CIE-LABlab(31.42, 27.60, -52.20)
CIE-LCHlch(31.42, 59.05, 297.87°)
OKLaboklab(41.97% 0.0122 -0.1502)
OKLCHoklch(41.97% 0.151 274.6)
XYZxyz(9.4922, 6.8293, 32.7097)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#383F9D #9D9638
analogous
#38729D #383F9D #64389D
triadic
#383F9D #9D383F #3F9D38
tetradic
#383F9D #9D3872 #9D9638 #389D64
square
#383F9D #9D3872 #9D9638 #389D64
split-complementary
#383F9D #9D6438 #729D38
monochromatic
#181B43 #282D70 #383F9D #5159C1 #7E84D1

Accessibility & contrast

On white

8.88
#383F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#383F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #383F9D
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##383F9D#FFFFFF#000000##FFFFFF
##383F9D1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA0
Deuteranopia (green-blind)
#00469B
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #383f9d;
/* rgb */ color: rgb(56, 63, 157);
/* oklch */ color: oklch(42.0% 0.151 274.6);
Tailwind
colors: {
  custom: {
    50: '#7a74bb',
    500: '#383f9d',
    950: '#000000',
  },
}
SCSS
$custom: #383f9d;
$custom-light: #7a74bb;
$custom-dark: #000000;
JSON
{
  "hex": "#383f9d",
  "rgb": {
    "r": 56,
    "g": 63,
    "b": 157
  },
  "hsl": {
    "h": 235.842,
    "s": 47.418,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41974,
    "c": 0.15067,
    "h": 274.6
  },
  "luminance": 0.0683
}

Semantic roles & 50–950 ramp

primary
#383F9D
secondary
#BAB676
accent
#CE51D7
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #383F9D

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

Preview Lab → · Contrast checker → · Palette generator →

#383F9D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva