#40598B#40598B

#40598B is a mid, moderate blue. Relative luminance 0.101; OKLCH L 46.8% C 0.087 H 263.2°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#40598B
RGBrgb(64, 89, 139)
HSLhsl(220, 37%, 40%)
HSVhsv(220, 54%, 55%)
CMYKcmyk(54%, 36%, 0%, 45.5%)
CIE-LABlab(38.02, 5.89, -30.67)
CIE-LCHlch(38.02, 31.23, 280.88°)
OKLaboklab(46.75% -0.0103 -0.0865)
OKLCHoklch(46.75% 0.087 263.2)
XYZxyz(10.3454, 10.0981, 25.8251)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40598B #8B7240
analogous
#407F8B #40598B #4D408B
triadic
#40598B #8B4059 #598B40
tetradic
#40598B #8B407F #8B7240 #408B4D
square
#40598B #8B407F #8B7240 #408B4D
split-complementary
#40598B #8B4D40 #7F8B40
monochromatic
#192337 #2D3E61 #40598B #5775B2 #8197C5

Accessibility & contrast

On white

6.95
#40598B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#40598B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40598B
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40598B#FFFFFF#000000##FFFFFF
##40598B1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455D8D
Deuteranopia (green-blind)
#3D568A
Tritanopia (blue-blind)
#1A646B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #40598b;
/* rgb */ color: rgb(64, 89, 139);
/* oklch */ color: oklch(46.8% 0.087 263.2);
Tailwind
colors: {
  custom: {
    50: '#7a87ad',
    500: '#40598b',
    950: '#000000',
  },
}
SCSS
$custom: #40598b;
$custom-light: #7a87ad;
$custom-dark: #000000;
JSON
{
  "hex": "#40598b",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 139
  },
  "hsl": {
    "h": 220,
    "s": 36.946,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46753,
    "c": 0.08714,
    "h": 263.2
  },
  "luminance": 0.10099
}

Semantic roles & 50–950 ramp

primary
#40598B
secondary
#AF9D78
accent
#A75BCD
background
#F7F8FA
surface
#EEEFF4
border
#C9CACE
text
#0A0B10
muted
#7C7C7F

Preview Lab

Preview with #40598B

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

Preview Lab → · Contrast checker → · Palette generator →

#40598B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva