#21248A color

#21248A rgb(33, 36, 138)
Shades of blue

The hex color #21248A is a dark, moderate blue.

In the RGB color model it is made of 12.9% red, 14.1% green and 54.1% blue (33, 36, 138).

Its hue angle is 238°, with 61% saturation and 34% lightness. For print, the CMYK equivalent is 76% cyan, 74% magenta, 0% yellow and 46% black.

The closest named color is Lost in Heaven (#002489), a difference of 2.2 ΔE, a small difference.

White text is the more readable choice on this background (contrast 12.47:1).

#21248A color codes

HEX#21248A
RGBrgb(33, 36, 138)
RGB percentrgb(12.9%, 14.1%, 54.1%)
HSLhsl(238, 61%, 34%)
HSV / HSBhsv(238, 76%, 54%)
CMYKcmyk(76%, 74%, 0%, 46%)
CIE LABlab(21.65, 35.06, -56.55)
CIE LCHlch(21.65, 66.54, 301.79)
CIE XYZxyz(5.844, 3.419, 24.392)
Decimal2172042
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #21248A, based on their position on the color wheel.

Complementary

The color opposite on the color wheel (180°). Strongest contrast.

Analogous

Neighbors 30° either side. Calm, natural combinations.

Split complementary

The two colors next to the complement (150° and 210°).

Triadic

Three colors evenly spaced, 120° apart.

Tetradic (square)

Four colors 90° apart.

Shades, tints and tones

Shades (darker, mixed with black)

Tints (lighter, mixed with white)

Tones (mixed with gray)

Contrast and accessibility

Text on #21248ARatioAAAAAAA large
Sample text1.68:1FailFailFail
Sample text12.47:1PassPassPass
#21248A as text onRatioAAAAAAA large
Sample text12.47:1PassPassPass
Sample text1.68:1FailFailFail

WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.

Color blindness simulation

How #21248A looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #21248a; }
.text { color: #21248a; }
.border { border: 2px solid #21248a; }
.transparent { background-color: rgb(33 36 138 / 50%); }
.gradient { background: linear-gradient(to right, #21248a, #52218a); }
Background
Text color
Border

Similar colors

Closest common color name: Midnight Blue.

Questions

What color is #21248A?
#21248A is a dark, moderate blue, closest to the named color Lost in Heaven. It belongs to the blue family of colors.
What is the RGB value of #21248A?
The RGB value is 33, 36, 138: 33 red, 36 green and 138 blue on a 0 to 255 scale.
What is the complementary color of #21248A?
The complementary color is #8A8721, found by rotating the hue 180° on the color wheel.
Is black or white text better on #21248A?
White text. Black text has a contrast ratio of 1.68:1 and white text 12.47:1. WCAG asks for at least 4.5:1 for normal text.