#40415B#40415B

#40415B is a dark, muted blue. Relative luminance 0.056; OKLCH L 38.6% C 0.044 H 282.4°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#40415B
RGBrgb(64, 65, 91)
HSLhsl(238, 17%, 30%)
HSVhsv(238, 30%, 36%)
CMYKcmyk(29.7%, 28.6%, 0%, 64.3%)
CIE-LABlab(28.45, 6.30, -15.58)
CIE-LCHlch(28.45, 16.80, 292.03°)
OKLaboklab(38.55% 0.0095 -0.043)
OKLCHoklch(38.55% 0.044 282.4)
XYZxyz(5.8925, 5.6258, 10.6709)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40415B #5B5A40
analogous
#404E5B #40415B #4C405B
triadic
#40415B #5B4041 #415B40
tetradic
#40415B #5B404E #5B5A40 #405B4C
square
#40415B #5B404E #5B5A40 #405B4C
split-complementary
#40415B #5B4C40 #4E5B40
monochromatic
#0D0E13 #272737 #40415B #595B7F #76789F

Accessibility & contrast

On white

9.88
#40415B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#40415B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40415B
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40415B#FFFFFF#000000##FFFFFF
##40415B1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A445C
Deuteranopia (green-blind)
#39425A
Tritanopia (blue-blind)
#3A464A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #40415b;
/* rgb */ color: rgb(64, 65, 91);
/* oklch */ color: oklch(38.6% 0.044 282.4);
Tailwind
colors: {
  custom: {
    50: '#757589',
    500: '#40415b',
    950: '#000000',
  },
}
SCSS
$custom: #40415b;
$custom-light: #757589;
$custom-dark: #000000;
JSON
{
  "hex": "#40415b",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 91
  },
  "hsl": {
    "h": 237.778,
    "s": 17.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38552,
    "c": 0.04406,
    "h": 282.4
  },
  "luminance": 0.05626
}

Semantic roles & 50–950 ramp

primary
#40415B
secondary
#8A896C
accent
#B76EBA
background
#F7F7F8
surface
#EDEDF0
border
#C8C8CB
text
#08080B
muted
#7B7B7C

Preview Lab

Preview with #40415B

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

Preview Lab → · Contrast checker → · Palette generator →

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