#40407B

A color in the Blue, Sky, Navy family

#40407b is a color in the Blue, Sky, Navy family: RGB(64, 64, 123), HSL(240°, 32%, 37%), CMYK(48%, 48%, 0%, 52%). Closest named color: darkslateblue. Contrast is 9.39:1 on white and 2.24:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#40407b
RGBrgb(64 64 123)
RGB (legacy)rgb(64, 64, 123)
RGB %rgb(25% 25% 48%)
HSLhsl(240 32% 37%)
HSV / HSBhsv(240, 48%, 48%)
HWBhwb(240 25% 52%)
CMYKcmyk(48%, 48%, 0%, 52%)
CIELAB (D50)lab(29.45 13.09 -34.2)
LCHlch(29.45 36.62 290.94)
OKLaboklab(0.4021 0.0187 -0.0956)
OKLCHoklch(0.4021 0.0974 281.1)
Decimal4210811

Properties

Color ToneBlue, Sky, Navy
Closest named colordarkslateblue ΔE 3.2
Closest web-safe color#333366
Hue240°
Saturation (HSL / HSV)32% / 48%
Lightness (HSL)37%
Brightness or Value (HSV)48%
Luminance (Rec.601 / Rec.709)28% / 27%
Relative luminance (WCAG)0.0619
Red / Green / Blue64 / 64 / 123

WCAG 2.2 Contrast Ratio

On White (#ffffff)
9.39:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.24:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 91.6 / -10.8 · As background with white / black text: Lc -95.9 / 12.4

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #40407b;
  --color-brand-oklch: oklch(40.21% 0.0974 281.1);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(64 64 123 / 50%); }
/* Tailwind CSS */
<div class="bg-[#40407b] text-[#40407b] border-[#40407b]">