Skip to content
Kolorvia
#2a2a7f

Color #2a2a7f

A moderately saturated dark blue.

Conversions

HEX
#2a2a7f
RGB
rgb(42, 42, 127)
HSL
hsl(240, 50.3%, 33.1%)
HSV / HSB
hsv(240, 66.9%, 49.8%)
CMYK
cmyk(66.9%, 66.9%, 0%, 50.2%)
LAB
lab(22.58, 28.39, -48.08)
LCH
lch(22.58, 55.84, 300.56)
OKLCH
oklch(34.4%, 0.1395, 276.21)
HWB
hwb(240, 16.5%, 50.2%)

Harmony colors

Complementary

#7f7f2a

Analogous

#2a547f
#2a2a7f
#542a7f

Triadic

#2a2a7f
#7f2a2a
#2a7f2a

Split-complementary

#2a2a7f
#7f542a
#547f2a

Tetradic

#2a2a7f
#7f2a7f
#7f7f2a
#2a7f2a

Square

#2a2a7f
#7f2a54
#7f7f2a
#2a7f54

Shades

Color #2a2a7f mixed toward black.

#23236a
#1c1c55
#15153f
#0e0e2a
#070715

Tints

Color #2a2a7f mixed toward white.

#3838aa
#5454c6
#7f7fd5
#aaaae3
#d4d4f1

Tones

Color #2a2a7f mixed toward gray.

#313178
#383871
#3f3f6a
#464663
#4d4d5b

Accessibility

Aa White text on this color
12.1:1
Aa Black text on this color
1.74:1

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

Under color vision deficiencies

Protanopia

#2a2a71 · ΔE 2.6

Deuteranopia

#2a2a6e · ΔE 3.1

Tritanopia

#2a6562 · ΔE 32.2

Achromatopsia

#363636 · ΔE 25

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

Code

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

Related colors

Navy #000080
Lavender #e6e6fa
Blue #0000ff
Dark Blue #00008b
Ghost White #f8f8ff
Medium Blue #0000cd

Frequently asked questions

#2a2a7f (#2a2a7f) is rgb(42, 42, 127) in RGB.

No, #2a2a7f 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 #2a2a7f, 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.