#40489E#40489E

#40489E is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.4% C 0.138 H 275.3°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#40489E
RGBrgb(64, 72, 158)
HSLhsl(235, 42%, 44%)
HSVhsv(235, 59%, 62%)
CMYKcmyk(59.5%, 54.4%, 0%, 38%)
CIE-LABlab(34.38, 23.52, -47.97)
CIE-LCHlch(34.38, 53.43, 296.12°)
OKLaboklab(44.35% 0.0127 -0.1374)
OKLCHoklch(44.35% 0.138 275.3)
XYZxyz(10.6013, 8.1925, 33.3638)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40489E #9E9640
analogous
#40779E #40489E #67409E
triadic
#40489E #9E4048 #489E40
tetradic
#40489E #9E4077 #9E9640 #409E67
square
#40489E #9E4077 #9E9640 #409E67
split-complementary
#40489E #9E6740 #779E40
monochromatic
#1D2047 #2E3472 #40489E #5E66BE #898FCF

Accessibility & contrast

On white

7.96
#40489E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#40489E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40489E
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40489E#FFFFFF#000000##FFFFFF
##40489E1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1255A1
Deuteranopia (green-blind)
#004D9C
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #40489e;
/* rgb */ color: rgb(64, 72, 158);
/* oklch */ color: oklch(44.4% 0.138 275.3);
Tailwind
colors: {
  custom: {
    50: '#7e7abb',
    500: '#40489e',
    950: '#000000',
  },
}
SCSS
$custom: #40489e;
$custom-light: #7e7abb;
$custom-dark: #000000;
JSON
{
  "hex": "#40489e",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 158
  },
  "hsl": {
    "h": 234.894,
    "s": 42.342,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4435,
    "c": 0.13803,
    "h": 275.3
  },
  "luminance": 0.08193
}

Semantic roles & 50–950 ramp

primary
#40489E
secondary
#BAB580
accent
#C856D2
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #40489E

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

Preview Lab → · Contrast checker → · Palette generator →

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