#383797#383797

#383797 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.0% C 0.153 H 277.4°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#383797
RGBrgb(56, 55, 151)
HSLhsl(241, 47%, 40%)
HSVhsv(241, 64%, 59%)
CMYKcmyk(62.9%, 63.6%, 0%, 40.8%)
CIE-LABlab(28.92, 30.69, -52.61)
CIE-LCHlch(28.92, 60.90, 300.25°)
OKLaboklab(39.98% 0.0197 -0.1514)
OKLCHoklch(39.98% 0.153 277.4)
XYZxyz(8.5812, 5.8068, 29.9408)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#383797 #969737
analogous
#376697 #383797 #683797
triadic
#383797 #973837 #379738
tetradic
#383797 #973766 #969737 #379768
square
#383797 #973766 #969737 #379768
split-complementary
#383797 #976837 #669737
monochromatic
#17163D #27276A #383797 #4E4DBE #7B7ACF

Accessibility & contrast

On white

9.72
#383797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#383797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #383797
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##383797#FFFFFF#000000##FFFFFF
##3837971.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #383797;
/* rgb */ color: rgb(56, 55, 151);
/* oklch */ color: oklch(40.0% 0.153 277.4);
Tailwind
colors: {
  custom: {
    50: '#7a6eb6',
    500: '#383797',
    950: '#000000',
  },
}
SCSS
$custom: #383797;
$custom-light: #7a6eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#383797",
  "rgb": {
    "r": 56,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 240.625,
    "s": 46.602,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39982,
    "c": 0.15273,
    "h": 277.4
  },
  "luminance": 0.05807
}

Semantic roles & 50–950 ramp

primary
#383797
secondary
#B7B872
accent
#D652D5
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #383797

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

Preview Lab → · Contrast checker → · Palette generator →

#383797 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva