#40458D#40458D

#40458D is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.5% C 0.117 H 277.2°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#40458D
RGBrgb(64, 69, 141)
HSLhsl(236, 38%, 40%)
HSVhsv(236, 55%, 55%)
CMYKcmyk(54.6%, 51.1%, 0%, 44.7%)
CIE-LABlab(32.41, 19.64, -40.80)
CIE-LCHlch(32.41, 45.28, 295.70°)
OKLaboklab(42.5% 0.0147 -0.1164)
OKLCHoklch(42.5% 0.117 277.2)
XYZxyz(9.0487, 7.2687, 26.1203)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40458D #8D8840
analogous
#406B8D #40458D #61408D
triadic
#40458D #8D4045 #458D40
tetradic
#40458D #8D406B #8D8840 #408D61
square
#40458D #8D406B #8D8840 #408D61
split-complementary
#40458D #8D6140 #6B8D40
monochromatic
#1A1C39 #2D3063 #40458D #575DB3 #8186C6

Accessibility & contrast

On white

8.56
#40458D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#40458D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40458D
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40458D#FFFFFF#000000##FFFFFF
##40458D1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224F90
Deuteranopia (green-blind)
#18498B
Tritanopia (blue-blind)
#1D5562
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #40458d;
/* rgb */ color: rgb(64, 69, 141);
/* oklch */ color: oklch(42.5% 0.117 277.2);
Tailwind
colors: {
  custom: {
    50: '#7b78af',
    500: '#40458d',
    950: '#000000',
  },
}
SCSS
$custom: #40458d;
$custom-light: #7b78af;
$custom-dark: #000000;
JSON
{
  "hex": "#40458d",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 141
  },
  "hsl": {
    "h": 236.104,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42497,
    "c": 0.11731,
    "h": 277.2
  },
  "luminance": 0.07269
}

Semantic roles & 50–950 ramp

primary
#40458D
secondary
#B0AD78
accent
#C65ACE
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #40458D

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

Preview Lab → · Contrast checker → · Palette generator →

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