Skip to content
Kolorvia
#2a1787

Color #2a1787

A vivid, highly saturated dark blue.

Conversions

HEX
#2a1787
RGB
rgb(42, 23, 135)
HSL
hsl(250.2, 70.9%, 31%)
HSV / HSB
hsv(250.2, 83%, 52.9%)
CMYK
cmyk(68.9%, 83%, 0%, 47.1%)
LAB
lab(19.45, 42.15, -58.29)
LCH
lch(19.45, 71.93, 305.87)
OKLCH
oklch(32.5%, 0.1703, 278.82)
HWB
hwb(250.2, 9%, 47.1%)

Harmony colors

Complementary

#748717

Analogous

#173c87
#2a1787
#621787

Triadic

#2a1787
#872a17
#17872a

Split-complementary

#2a1787
#876217
#3c8717

Tetradic

#2a1787
#871774
#748717
#17872a

Square

#2a1787
#87173c
#748717
#178762

Shades

Color #2a1787 mixed toward black.

#231371
#1c0f5a
#150c44
#0e082d
#070417

Tints

Color #2a1787 mixed toward white.

#3a20b9
#5337dd
#7e69e5
#a99bee
#d4cdf6

Tones

Color #2a1787 mixed toward gray.

#30207e
#362a74
#3d336b
#433c62
#494658

Accessibility

Aa White text on this color
13.37:1
Aa Black text on this color
1.57:1

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

Under color vision deficiencies

Protanopia

#232377 · ΔE 4.5

Deuteranopia

#242573 · ΔE 5.6

Tritanopia

#296965 · ΔE 36.1

Achromatopsia

#2f2f2f · ΔE 27.5

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

Code

CSS
background-color: #2a1787;
Tailwind (arbitrary value)
bg-[#2a1787]

Related colors

Dark Slate Blue #483d8b
Medium Slate Blue #7b68ee
Slate Blue #6a5acd
Medium Purple #9370db
Navy #000080
Lavender #e6e6fa

Frequently asked questions

#2a1787 (#2a1787) is rgb(42, 23, 135) in RGB.

No, #2a1787 is not one of the 216 web-safe colors — for that, every RGB channel would have to be a multiple of 51.

Related tools

Build something with this color

Generate a full palette from #2a1787, 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.