#383897#383897

#383897 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.2% C 0.151 H 277.1°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#383897
RGBrgb(56, 56, 151)
HSLhsl(240, 46%, 41%)
HSVhsv(240, 63%, 59%)
CMYKcmyk(62.9%, 62.9%, 0%, 40.8%)
CIE-LABlab(29.17, 30.04, -52.21)
CIE-LCHlch(29.17, 60.23, 299.92°)
OKLaboklab(40.16% 0.0188 -0.1503)
OKLCHoklch(40.16% 0.151 277.1)
XYZxyz(8.6292, 5.9028, 29.9568)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#383897 #979738
analogous
#386797 #383897 #673897
triadic
#383897 #973838 #389738
tetradic
#383897 #973867 #979738 #389767
square
#383897 #973867 #979738 #389767
split-complementary
#383897 #976738 #679738
monochromatic
#17173E #27276A #383897 #4F4FBE #7B7BCE

Accessibility & contrast

On white

9.63
#383897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#383897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #383897
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##383897#FFFFFF#000000##FFFFFF
##3838971.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #383897;
/* rgb */ color: rgb(56, 56, 151);
/* oklch */ color: oklch(40.2% 0.151 277.1);
Tailwind
colors: {
  custom: {
    50: '#796fb6',
    500: '#383897',
    950: '#000000',
  },
}
SCSS
$custom: #383897;
$custom-light: #796fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#383897",
  "rgb": {
    "r": 56,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 240,
    "s": 45.894,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40162,
    "c": 0.15144,
    "h": 277.1
  },
  "luminance": 0.05903
}

Semantic roles & 50–950 ramp

primary
#383897
secondary
#B7B773
accent
#D652D6
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #383897

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

Preview Lab → · Contrast checker → · Palette generator →

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