#40459F#40459F

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

Color values

HEX#40459F
RGBrgb(64, 69, 159)
HSLhsl(237, 43%, 44%)
HSVhsv(237, 60%, 62%)
CMYKcmyk(59.7%, 56.6%, 0%, 37.6%)
CIE-LABlab(33.67, 25.82, -49.73)
CIE-LCHlch(33.67, 56.04, 297.44°)
OKLaboklab(43.84% 0.0158 -0.1426)
OKLCHoklch(43.84% 0.144 276.3)
XYZxyz(10.4985, 7.8487, 33.7559)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40459F #9F9A40
analogous
#40749F #40459F #6A409F
triadic
#40459F #9F4045 #459F40
tetradic
#40459F #9F4074 #9F9A40 #409F6A
square
#40459F #9F4074 #9F9A40 #409F6A
split-complementary
#40459F #9F6A40 #749F40
monochromatic
#1D1F48 #2E3273 #40459F #5E63BE #8A8DD0

Accessibility & contrast

On white

8.17
#40459F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#40459F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40459F
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40459F#FFFFFF#000000##FFFFFF
##40459F1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A2
Deuteranopia (green-blind)
#004B9D
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #40459f;
/* rgb */ color: rgb(64, 69, 159);
/* oklch */ color: oklch(43.8% 0.144 276.3);
Tailwind
colors: {
  custom: {
    50: '#7e78bc',
    500: '#40459f',
    950: '#000000',
  },
}
SCSS
$custom: #40459f;
$custom-light: #7e78bc;
$custom-dark: #000000;
JSON
{
  "hex": "#40459f",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 159
  },
  "hsl": {
    "h": 236.842,
    "s": 42.601,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43838,
    "c": 0.14352,
    "h": 276.3
  },
  "luminance": 0.07849
}

Semantic roles & 50–950 ramp

primary
#40459F
secondary
#BBB780
accent
#CC55D2
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #40459F

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

Preview Lab → · Contrast checker → · Palette generator →

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