#40388E#40388E

#40388E is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.0% C 0.137 H 282.4°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#40388E
RGBrgb(64, 56, 142)
HSLhsl(246, 43%, 39%)
HSVhsv(246, 61%, 56%)
CMYKcmyk(54.9%, 60.6%, 0%, 44.3%)
CIE-LABlab(29.08, 28.47, -46.79)
CIE-LCHlch(29.08, 54.77, 301.32°)
OKLaboklab(40.04% 0.0296 -0.1341)
OKLCHoklch(40.04% 0.137 282.4)
XYZxyz(8.4095, 5.8708, 26.2760)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40388E #868E38
analogous
#385B8E #40388E #6B388E
triadic
#40388E #8E4038 #388E40
tetradic
#40388E #8E385B #868E38 #388E6B
square
#40388E #8E385B #868E38 #388E6B
split-complementary
#40388E #8E6B38 #5B8E38
monochromatic
#181536 #2C2762 #40388E #554BB8 #7F77C9

Accessibility & contrast

On white

9.66
#40388E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#40388E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40388E
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40388E#FFFFFF#000000##FFFFFF
##40388E1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#1E4C5D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #40388e;
/* rgb */ color: rgb(64, 56, 142);
/* oklch */ color: oklch(40.0% 0.137 282.4);
Tailwind
colors: {
  custom: {
    50: '#7c6fb0',
    500: '#40388e',
    950: '#000000',
  },
}
SCSS
$custom: #40388e;
$custom-light: #7c6fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#40388e",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 142
  },
  "hsl": {
    "h": 245.581,
    "s": 43.434,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40038,
    "c": 0.13732,
    "h": 282.4
  },
  "luminance": 0.05871
}

Semantic roles & 50–950 ramp

primary
#40388E
secondary
#ACB26F
accent
#D355C7
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #40388E

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

Preview Lab → · Contrast checker → · Palette generator →

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