#40459C#40459C

#40459C is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.6% C 0.139 H 276.5°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#40459C
RGBrgb(64, 69, 156)
HSLhsl(237, 42%, 43%)
HSVhsv(237, 59%, 61%)
CMYKcmyk(59%, 55.8%, 0%, 38.8%)
CIE-LABlab(33.45, 24.79, -48.27)
CIE-LCHlch(33.45, 54.26, 297.18°)
OKLaboklab(43.61% 0.0157 -0.1384)
OKLCHoklch(43.61% 0.139 276.5)
XYZxyz(10.2413, 7.7458, 32.4015)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40459C #9C9740
analogous
#40739C #40459C #69409C
triadic
#40459C #9C4045 #459C40
tetradic
#40459C #9C4073 #9C9740 #409C69
square
#40459C #9C4073 #9C9740 #409C69
split-complementary
#40459C #9C6940 #739C40
monochromatic
#1C1F45 #2E3271 #40459C #5D62BC #888CCE

Accessibility & contrast

On white

8.24
#40459C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#40459C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40459C
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40459C#FFFFFF#000000##FFFFFF
##40459C1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08539F
Deuteranopia (green-blind)
#004B9A
Tritanopia (blue-blind)
#015969
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #40459c;
/* rgb */ color: rgb(64, 69, 156);
/* oklch */ color: oklch(43.6% 0.139 276.5);
Tailwind
colors: {
  custom: {
    50: '#7e78ba',
    500: '#40459c',
    950: '#000000',
  },
}
SCSS
$custom: #40459c;
$custom-light: #7e78ba;
$custom-dark: #000000;
JSON
{
  "hex": "#40459c",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 156
  },
  "hsl": {
    "h": 236.739,
    "s": 41.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43606,
    "c": 0.13925,
    "h": 276.5
  },
  "luminance": 0.07747
}

Semantic roles & 50–950 ramp

primary
#40459C
secondary
#B9B67F
accent
#CB56D2
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #40459C

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

Preview Lab → · Contrast checker → · Palette generator →

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