#40608E#40608E

#40608E is a mid, moderate blue. Relative luminance 0.114; OKLCH L 48.5% C 0.084 H 257.5°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#40608E
RGBrgb(64, 96, 142)
HSLhsl(215, 38%, 40%)
HSVhsv(215, 55%, 56%)
CMYKcmyk(54.9%, 32.4%, 0%, 44.3%)
CIE-LABlab(40.26, 2.47, -28.96)
CIE-LCHlch(40.26, 29.07, 274.88°)
OKLaboklab(48.55% -0.0181 -0.0815)
OKLCHoklch(48.55% 0.084 257.5)
XYZxyz(11.1780, 11.4079, 27.1988)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40608E #8E6E40
analogous
#40878E #40608E #47408E
triadic
#40608E #8E4060 #608E40
tetradic
#40608E #8E4087 #8E6E40 #408E47
square
#40608E #8E4087 #8E6E40 #408E47
split-complementary
#40608E #8E4740 #878E40
monochromatic
#1A273A #2D4364 #40608E #587DB4 #829EC7

Accessibility & contrast

On white

6.40
#40608E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#40608E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40608E
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40608E#FFFFFF#000000##FFFFFF
##40608E1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E6390
Deuteranopia (green-blind)
#445C8D
Tritanopia (blue-blind)
#146A70
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #40608e;
/* rgb */ color: rgb(64, 96, 142);
/* oklch */ color: oklch(48.5% 0.084 257.5);
Tailwind
colors: {
  custom: {
    50: '#7a8caf',
    500: '#40608e',
    950: '#000000',
  },
}
SCSS
$custom: #40608e;
$custom-light: #7a8caf;
$custom-dark: #000000;
JSON
{
  "hex": "#40608e",
  "rgb": {
    "r": 64,
    "g": 96,
    "b": 142
  },
  "hsl": {
    "h": 215.385,
    "s": 37.864,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48549,
    "c": 0.08351,
    "h": 257.5
  },
  "luminance": 0.11409
}

Semantic roles & 50–950 ramp

primary
#40608E
secondary
#B19A79
accent
#9E5ACE
background
#F7F8FA
surface
#EEF0F4
border
#C9CBCE
text
#0A0C10
muted
#7C7D7F

Preview Lab

Preview with #40608E

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

Preview Lab → · Contrast checker → · Palette generator →

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