#40396F#40396F

#40396F is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.9% C 0.090 H 287.3°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#40396F
RGBrgb(64, 57, 111)
HSLhsl(248, 32%, 33%)
HSVhsv(248, 49%, 44%)
CMYKcmyk(42.3%, 48.6%, 0%, 56.5%)
CIE-LABlab(27.20, 17.71, -30.38)
CIE-LCHlch(27.20, 35.17, 300.24°)
OKLaboklab(37.94% 0.0267 -0.0859)
OKLCHoklch(37.94% 0.09 287.3)
XYZxyz(6.4459, 5.1637, 15.6929)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40396F #686F39
analogous
#394D6F #40396F #5B396F
triadic
#40396F #6F4039 #396F40
tetradic
#40396F #6F394D #686F39 #396F5B
square
#40396F #6F394D #686F39 #396F5B
split-complementary
#40396F #6F5B39 #4D6F39
monochromatic
#110F1E #292447 #40396F #574E97 #776EB4

Accessibility & contrast

On white

10.33
#40396F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#40396F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40396F
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40396F#FFFFFF#000000##FFFFFF
##40396F1.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)
#254271
Deuteranopia (green-blind)
#243F6E
Tritanopia (blue-blind)
#33444E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #40396f;
/* rgb */ color: rgb(64, 57, 111);
/* oklch */ color: oklch(37.9% 0.090 287.3);
Tailwind
colors: {
  custom: {
    50: '#776f98',
    500: '#40396f',
    950: '#000000',
  },
}
SCSS
$custom: #40396f;
$custom-light: #776f98;
$custom-dark: #000000;
JSON
{
  "hex": "#40396f",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 111
  },
  "hsl": {
    "h": 247.778,
    "s": 32.143,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37943,
    "c": 0.08994,
    "h": 287.3
  },
  "luminance": 0.05164
}

Semantic roles & 50–950 ramp

primary
#40396F
secondary
#979E66
accent
#C85FBB
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#09070E
muted
#7B7A7E

Preview Lab

Preview with #40396F

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

Preview Lab → · Contrast checker → · Palette generator →

#40396F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva