#40459D#40459D

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

Color values

HEX#40459D
RGBrgb(64, 69, 157)
HSLhsl(237, 42%, 43%)
HSVhsv(237, 59%, 62%)
CMYKcmyk(59.2%, 56.1%, 0%, 38.4%)
CIE-LABlab(33.52, 25.13, -48.76)
CIE-LCHlch(33.52, 54.86, 297.27°)
OKLaboklab(43.68% 0.0158 -0.1398)
OKLCHoklch(43.68% 0.141 276.4)
XYZxyz(10.3263, 7.7798, 32.8492)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40459D #9D9840
analogous
#40739D #40459D #69409D
triadic
#40459D #9D4045 #459D40
tetradic
#40459D #9D4073 #9D9840 #409D69
square
#40459D #9D4073 #9D9840 #409D69
split-complementary
#40459D #9D6940 #739D40
monochromatic
#1D1F46 #2E3272 #40459D #5D62BD #898CCF

Accessibility & contrast

On white

8.22
#40459D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40459D
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40459D#FFFFFF#000000##FFFFFF
##40459D1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0553A0
Deuteranopia (green-blind)
#004B9B
Tritanopia (blue-blind)
#005A6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #40459d;
/* rgb */ color: rgb(64, 69, 157);
/* oklch */ color: oklch(43.7% 0.141 276.4);
Tailwind
colors: {
  custom: {
    50: '#7e78bb',
    500: '#40459d',
    950: '#000000',
  },
}
SCSS
$custom: #40459d;
$custom-light: #7e78bb;
$custom-dark: #000000;
JSON
{
  "hex": "#40459d",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 157
  },
  "hsl": {
    "h": 236.774,
    "s": 42.081,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43683,
    "c": 0.14068,
    "h": 276.4
  },
  "luminance": 0.07781
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40459D

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

Preview Lab → · Contrast checker → · Palette generator →

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