#40488D#40488D

#40488D is a dark, moderate blue. Relative luminance 0.076; OKLCH L 43.1% C 0.113 H 275.6°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#40488D
RGBrgb(64, 72, 141)
HSLhsl(234, 38%, 40%)
HSVhsv(234, 55%, 55%)
CMYKcmyk(54.6%, 48.9%, 0%, 44.7%)
CIE-LABlab(33.24, 17.66, -39.48)
CIE-LCHlch(33.24, 43.25, 294.10°)
OKLaboklab(43.12% 0.0111 -0.1125)
OKLCHoklch(43.12% 0.113 275.6)
XYZxyz(9.2379, 7.6472, 26.1834)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40488D #8D8540
analogous
#406F8D #40488D #5E408D
triadic
#40488D #8D4048 #488D40
tetradic
#40488D #8D406F #8D8540 #408D5E
square
#40488D #8D406F #8D8540 #408D5E
split-complementary
#40488D #8D5E40 #6F8D40
monochromatic
#1A1D39 #2D3363 #40488D #5761B3 #8189C6

Accessibility & contrast

On white

8.30
#40488D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#40488D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40488D
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40488D#FFFFFF#000000##FFFFFF
##40488D1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285190
Deuteranopia (green-blind)
#1F4B8C
Tritanopia (blue-blind)
#1C5763
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #40488d;
/* rgb */ color: rgb(64, 72, 141);
/* oklch */ color: oklch(43.1% 0.113 275.6);
Tailwind
colors: {
  custom: {
    50: '#7b7aaf',
    500: '#40488d',
    950: '#000000',
  },
}
SCSS
$custom: #40488d;
$custom-light: #7b7aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#40488d",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 141
  },
  "hsl": {
    "h": 233.766,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43121,
    "c": 0.11301,
    "h": 275.6
  },
  "luminance": 0.07648
}

Semantic roles & 50–950 ramp

primary
#40488D
secondary
#B0AB78
accent
#C25ACE
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #40488D

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

Preview Lab → · Contrast checker → · Palette generator →

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