#40488E#40488E

#40488E is a dark, moderate blue. Relative luminance 0.077; OKLCH L 43.2% C 0.115 H 275.6°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#40488E
RGBrgb(64, 72, 142)
HSLhsl(234, 38%, 40%)
HSVhsv(234, 55%, 56%)
CMYKcmyk(54.9%, 49.3%, 0%, 44.3%)
CIE-LABlab(33.30, 18.00, -39.99)
CIE-LCHlch(33.30, 43.85, 294.23°)
OKLaboklab(43.19% 0.0112 -0.114)
OKLCHoklch(43.19% 0.115 275.6)
XYZxyz(9.3126, 7.6771, 26.5770)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40488E #8E8640
analogous
#406F8E #40488E #5F408E
triadic
#40488E #8E4048 #488E40
tetradic
#40488E #8E406F #8E8640 #408E5F
square
#40488E #8E406F #8E8640 #408E5F
split-complementary
#40488E #8E5F40 #6F8E40
monochromatic
#1A1D3A #2D3364 #40488E #5861B4 #8289C7

Accessibility & contrast

On white

8.28
#40488E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#40488E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40488E
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40488E#FFFFFF#000000##FFFFFF
##40488E1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275291
Deuteranopia (green-blind)
#1E4B8C
Tritanopia (blue-blind)
#1B5764
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #40488e;
/* rgb */ color: rgb(64, 72, 142);
/* oklch */ color: oklch(43.2% 0.115 275.6);
Tailwind
colors: {
  custom: {
    50: '#7b7aaf',
    500: '#40488e',
    950: '#000000',
  },
}
SCSS
$custom: #40488e;
$custom-light: #7b7aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#40488e",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 142
  },
  "hsl": {
    "h": 233.846,
    "s": 37.864,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4319,
    "c": 0.11452,
    "h": 275.6
  },
  "luminance": 0.07678
}

Semantic roles & 50–950 ramp

primary
#40488E
secondary
#B1AB79
accent
#C25ACE
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #40488E

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

Preview Lab → · Contrast checker → · Palette generator →

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