#40396D#40396D

#40396D is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.8% C 0.087 H 287.7°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#40396D
RGBrgb(64, 57, 109)
HSLhsl(248, 31%, 33%)
HSVhsv(248, 48%, 43%)
CMYKcmyk(41.3%, 47.7%, 0%, 57.3%)
CIE-LABlab(27.07, 17.08, -29.30)
CIE-LCHlch(27.07, 33.92, 300.24°)
OKLaboklab(37.81% 0.0264 -0.0827)
OKLCHoklch(37.81% 0.087 287.7)
XYZxyz(6.3370, 5.1202, 15.1194)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40396D #666D39
analogous
#394C6D #40396D #5A396D
triadic
#40396D #6D4039 #396D40
tetradic
#40396D #6D394C #666D39 #396D5A
square
#40396D #6D394C #666D39 #396D5A
split-complementary
#40396D #6D5A39 #4C6D39
monochromatic
#110F1D #282445 #40396D #584E95 #776DB3

Accessibility & contrast

On white

10.38
#40396D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#40396D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40396D
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40396D#FFFFFF#000000##FFFFFF
##40396D1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26416F
Deuteranopia (green-blind)
#263F6C
Tritanopia (blue-blind)
#34434D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #40396d;
/* rgb */ color: rgb(64, 57, 109);
/* oklch */ color: oklch(37.8% 0.087 287.7);
Tailwind
colors: {
  custom: {
    50: '#776f97',
    500: '#40396d',
    950: '#000000',
  },
}
SCSS
$custom: #40396d;
$custom-light: #776f97;
$custom-dark: #000000;
JSON
{
  "hex": "#40396d",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 109
  },
  "hsl": {
    "h": 248.077,
    "s": 31.325,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37812,
    "c": 0.08682,
    "h": 287.7
  },
  "luminance": 0.0512
}

Semantic roles & 50–950 ramp

primary
#40396D
secondary
#959D65
accent
#C860BA
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#09070D
muted
#7B7A7E

Preview Lab

Preview with #40396D

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

Preview Lab → · Contrast checker → · Palette generator →

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