#40459E#40459E

#40459E is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.8% C 0.142 H 276.4°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#40459E
RGBrgb(64, 69, 158)
HSLhsl(237, 42%, 44%)
HSVhsv(237, 59%, 62%)
CMYKcmyk(59.5%, 56.3%, 0%, 38%)
CIE-LABlab(33.59, 25.48, -49.25)
CIE-LCHlch(33.59, 55.45, 297.36°)
OKLaboklab(43.76% 0.0158 -0.1412)
OKLCHoklch(43.76% 0.142 276.4)
XYZxyz(10.4120, 7.8141, 33.3007)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40459E #9E9940
analogous
#40749E #40459E #6A409E
triadic
#40459E #9E4045 #459E40
tetradic
#40459E #9E4074 #9E9940 #409E6A
square
#40459E #9E4074 #9E9940 #409E6A
split-complementary
#40459E #9E6A40 #749E40
monochromatic
#1D1F47 #2E3272 #40459E #5E63BE #898DCF

Accessibility & contrast

On white

8.19
#40459E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#40459E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40459E
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40459E#FFFFFF#000000##FFFFFF
##40459E1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0153A1
Deuteranopia (green-blind)
#004B9C
Tritanopia (blue-blind)
#005A6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #40459e;
/* rgb */ color: rgb(64, 69, 158);
/* oklch */ color: oklch(43.8% 0.142 276.4);
Tailwind
colors: {
  custom: {
    50: '#7e78bb',
    500: '#40459e',
    950: '#000000',
  },
}
SCSS
$custom: #40459e;
$custom-light: #7e78bb;
$custom-dark: #000000;
JSON
{
  "hex": "#40459e",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 158
  },
  "hsl": {
    "h": 236.809,
    "s": 42.342,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4376,
    "c": 0.1421,
    "h": 276.4
  },
  "luminance": 0.07815
}

Semantic roles & 50–950 ramp

primary
#40459E
secondary
#BAB780
accent
#CC56D2
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #40459E

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

Preview Lab → · Contrast checker → · Palette generator →

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