Skip to content
Kolorvia
#402af1

Color #402af1

A vivid, highly saturated medium blue.

Conversions

HEX
#402af1
RGB
rgb(64, 42, 241)
HSL
hsl(246.6, 87.7%, 55.5%)
HSV / HSB
hsv(246.6, 82.6%, 94.5%)
CMYK
cmyk(73.4%, 82.6%, 0%, 5.5%)
LAB
lab(36.17, 66.54, -93.46)
LCH
lch(36.17, 114.73, 305.45)
OKLCH
oklch(47.9%, 0.2709, 274.04)
HWB
hwb(246.6, 16.5%, 5.5%)

Harmony colors

Complementary

#dbf12a

Analogous

#2a78f1
#402af1
#a32af1

Triadic

#402af1
#f1402a
#2af140

Split-complementary

#402af1
#f1a32a
#78f12a

Tetradic

#402af1
#f12adb
#dbf12a
#2af140

Square

#402af1
#f12a78
#dbf12a
#2af1a3

Shades

Color #402af1 mixed toward black.

#250fdd
#1e0cb1
#160985
#0f0659
#07032c

Tints

Color #402af1 mixed toward white.

#604ef3
#8071f6
#9f95f8
#bfb8fa
#dfdcfd

Tones

Color #402af1 mixed toward gray.

#4d3be0
#5a4bd0
#675cbf
#746caf
#817d9e

Accessibility

Aa White text on this color
7.45:1
Aa Black text on this color
2.82:1

White text reads better on this background (7.45:1). That passes WCAG AAA (≥7:1) for normal-size text.

Under color vision deficiencies

Protanopia

#3837d6 · ΔE 3.8

Deuteranopia

#393acf · ΔE 4.8

Tritanopia

#3fbdb7 · ΔE 51.5

Achromatopsia

#555555 · ΔE 32

Left half is the original, right half is the simulated appearance. See all 8 vision types →

Code

CSS
background-color: #402af1;
Tailwind (arbitrary value)
bg-[#402af1]

Related colors

Slate Blue #6a5acd
Dark Slate Blue #483d8b
Medium Slate Blue #7b68ee
Navy #000080
Lavender #e6e6fa
Blue #0000ff

Frequently asked questions

#402af1 (#402af1) is rgb(64, 42, 241) in RGB.

No, #402af1 is not web-safe. The nearest web-safe colors are among its tones and shades below.

Related tools

Build something with this color

Generate a full palette from #402af1, or check how it holds up for accessibility.

We use cookies for site preferences and, where enabled, Google Analytics and Google AdSense — which may use cookies to personalize ads based on your visits here and elsewhere. See our Privacy Policy for details. Your color tool inputs are never sent to us regardless of your choice.