#40396E#40396E

#40396E is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.9% C 0.088 H 287.5°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#40396E
RGBrgb(64, 57, 110)
HSLhsl(248, 32%, 33%)
HSVhsv(248, 48%, 43%)
CMYKcmyk(41.8%, 48.2%, 0%, 56.9%)
CIE-LABlab(27.14, 17.40, -29.84)
CIE-LCHlch(27.14, 34.54, 300.24°)
OKLaboklab(37.88% 0.0265 -0.0843)
OKLCHoklch(37.88% 0.088 287.5)
XYZxyz(6.3912, 5.1418, 15.4046)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40396E #676E39
analogous
#394C6E #40396E #5B396E
triadic
#40396E #6E4039 #396E40
tetradic
#40396E #6E394C #676E39 #396E5B
square
#40396E #6E394C #676E39 #396E5B
split-complementary
#40396E #6E5B39 #4C6E39
monochromatic
#110F1D #292446 #40396E #574E96 #776EB4

Accessibility & contrast

On white

10.35
#40396E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40396E
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40396E#FFFFFF#000000##FFFFFF
##40396E1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254170
Deuteranopia (green-blind)
#253F6D
Tritanopia (blue-blind)
#33444E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #40396e;
/* rgb */ color: rgb(64, 57, 110);
/* oklch */ color: oklch(37.9% 0.088 287.5);
Tailwind
colors: {
  custom: {
    50: '#776f98',
    500: '#40396e',
    950: '#000000',
  },
}
SCSS
$custom: #40396e;
$custom-light: #776f98;
$custom-dark: #000000;
JSON
{
  "hex": "#40396e",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 110
  },
  "hsl": {
    "h": 247.925,
    "s": 31.737,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37877,
    "c": 0.08838,
    "h": 287.5
  },
  "luminance": 0.05142
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40396E

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

Preview Lab → · Contrast checker → · Palette generator →

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