#40459B#40459B

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

Color values

HEX#40459B
RGBrgb(64, 69, 155)
HSLhsl(237, 42%, 43%)
HSVhsv(237, 59%, 61%)
CMYKcmyk(58.7%, 55.5%, 0%, 39.2%)
CIE-LABlab(33.38, 24.44, -47.78)
CIE-LCHlch(33.38, 53.67, 297.09°)
OKLaboklab(43.53% 0.0157 -0.1369)
OKLCHoklch(43.53% 0.138 276.5)
XYZxyz(10.1570, 7.7121, 31.9573)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40459B #9B9640
analogous
#40739B #40459B #68409B
triadic
#40459B #9B4045 #459B40
tetradic
#40459B #9B4073 #9B9640 #409B68
square
#40459B #9B4073 #9B9640 #409B68
split-complementary
#40459B #9B6840 #739B40
monochromatic
#1C1E44 #2E3270 #40459B #5C62BC #888CCE

Accessibility & contrast

On white

8.26
#40459B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#40459B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40459B
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40459B#FFFFFF#000000##FFFFFF
##40459B1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B529E
Deuteranopia (green-blind)
#004B99
Tritanopia (blue-blind)
#045969
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #40459b;
/* rgb */ color: rgb(64, 69, 155);
/* oklch */ color: oklch(43.5% 0.138 276.5);
Tailwind
colors: {
  custom: {
    50: '#7d78b9',
    500: '#40459b',
    950: '#000000',
  },
}
SCSS
$custom: #40459b;
$custom-light: #7d78b9;
$custom-dark: #000000;
JSON
{
  "hex": "#40459b",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 155
  },
  "hsl": {
    "h": 236.703,
    "s": 41.553,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4353,
    "c": 0.13781,
    "h": 276.5
  },
  "luminance": 0.07713
}

Semantic roles & 50–950 ramp

primary
#40459B
secondary
#B8B57E
accent
#CB56D1
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0911
muted
#7C7B80

Preview Lab

Preview with #40459B

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

Preview Lab → · Contrast checker → · Palette generator →

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