#40407F

A color in the Blue, Sky, Navy family

#40407f is a color in the Blue, Sky, Navy family: RGB(64, 64, 127), HSL(240°, 33%, 37%), CMYK(50%, 50%, 0%, 50%). Closest named color: darkslateblue. Contrast is 9.3:1 on white and 2.26:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#40407f
RGBrgb(64 64 127)
RGB (legacy)rgb(64, 64, 127)
RGB %rgb(25% 25% 50%)
HSLhsl(240 33% 37%)
HSV / HSBhsv(240, 50%, 50%)
HWBhwb(240 25% 50%)
CMYKcmyk(50%, 50%, 0%, 50%)
CIELAB (D50)lab(29.67 14.15 -36.35)
LCHlch(29.67 39.01 291.26)
OKLaboklab(0.4048 0.0193 -0.1017)
OKLCHoklch(0.4048 0.1035 280.73)
Decimal4210815

Properties

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

WCAG 2.2 Contrast Ratio

On White (#ffffff)
9.30:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.26: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.3 / -11 · As background with white / black text: Lc -95.6 / 12.7

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: #40407f;
  --color-brand-oklch: oklch(40.48% 0.1035 280.73);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(64 64 127 / 50%); }
/* Tailwind CSS */
<div class="bg-[#40407f] text-[#40407f] border-[#40407f]">