#40489F#40489F

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

Color values

HEX#40489F
RGBrgb(64, 72, 159)
HSLhsl(235, 43%, 44%)
HSVhsv(235, 60%, 62%)
CMYKcmyk(59.7%, 54.7%, 0%, 37.6%)
CIE-LABlab(34.45, 23.87, -48.46)
CIE-LCHlch(34.45, 54.02, 296.22°)
OKLaboklab(44.43% 0.0127 -0.1389)
OKLCHoklch(44.43% 0.139 275.2)
XYZxyz(10.6877, 8.2271, 33.8190)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40489F #9F9740
analogous
#40779F #40489F #67409F
triadic
#40489F #9F4048 #489F40
tetradic
#40489F #9F4077 #9F9740 #409F67
square
#40489F #9F4077 #9F9740 #409F67
split-complementary
#40489F #9F6740 #779F40
monochromatic
#1D2048 #2E3473 #40489F #5E66BE #8A90D0

Accessibility & contrast

On white

7.94
#40489F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#40489F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40489F
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40489F#FFFFFF#000000##FFFFFF
##40489F1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1055A2
Deuteranopia (green-blind)
#004D9D
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #40489f;
/* rgb */ color: rgb(64, 72, 159);
/* oklch */ color: oklch(44.4% 0.139 275.2);
Tailwind
colors: {
  custom: {
    50: '#7e7abc',
    500: '#40489f',
    950: '#000000',
  },
}
SCSS
$custom: #40489f;
$custom-light: #7e7abc;
$custom-dark: #000000;
JSON
{
  "hex": "#40489f",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 159
  },
  "hsl": {
    "h": 234.947,
    "s": 42.601,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44425,
    "c": 0.13946,
    "h": 275.2
  },
  "luminance": 0.08228
}

Semantic roles & 50–950 ramp

primary
#40489F
secondary
#BBB680
accent
#C855D2
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #40489F

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

Preview Lab → · Contrast checker → · Palette generator →

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