#40488F#40488F

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

Color values

HEX#40488F
RGBrgb(64, 72, 143)
HSLhsl(234, 38%, 41%)
HSVhsv(234, 55%, 56%)
CMYKcmyk(55.2%, 49.7%, 0%, 43.9%)
CIE-LABlab(33.37, 18.34, -40.50)
CIE-LCHlch(33.37, 44.46, 294.37°)
OKLaboklab(43.26% 0.0113 -0.1155)
OKLCHoklch(43.26% 0.116 275.6)
XYZxyz(9.3881, 7.7073, 26.9742)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40488F #8F8740
analogous
#406F8F #40488F #5F408F
triadic
#40488F #8F4048 #488F40
tetradic
#40488F #8F406F #8F8740 #408F5F
square
#40488F #8F406F #8F8740 #408F5F
split-complementary
#40488F #8F5F40 #6F8F40
monochromatic
#1A1D3A #2D3365 #40488F #5861B4 #8289C7

Accessibility & contrast

On white

8.26
#40488F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40488F
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40488F#FFFFFF#000000##FFFFFF
##40488F1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265292
Deuteranopia (green-blind)
#1D4B8D
Tritanopia (blue-blind)
#1A5864
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #40488f;
/* rgb */ color: rgb(64, 72, 143);
/* oklch */ color: oklch(43.3% 0.116 275.6);
Tailwind
colors: {
  custom: {
    50: '#7b7ab0',
    500: '#40488f',
    950: '#000000',
  },
}
SCSS
$custom: #40488f;
$custom-light: #7b7ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#40488f",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 143
  },
  "hsl": {
    "h": 233.924,
    "s": 38.164,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4326,
    "c": 0.11601,
    "h": 275.6
  },
  "luminance": 0.07708
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40488F

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

Preview Lab → · Contrast checker → · Palette generator →

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