#27238B color

#27238B rgb(39, 35, 139)
Shades of blue

The hex color #27238B is a dark, moderate blue.

In the RGB color model it is made of 15.3% red, 13.7% green and 54.5% blue (39, 35, 139).

Its hue angle is 242°, with 60% saturation and 34% lightness. For print, the CMYK equivalent is 72% cyan, 75% magenta, 0% yellow and 45% black.

The closest named color is Gentian Blue (#312297), a difference of 2.3 ΔE, a small difference.

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

#27238B color codes

HEX#27238B
RGBrgb(39, 35, 139)
RGB percentrgb(15.3%, 13.7%, 54.5%)
HSLhsl(242, 60%, 34%)
HSV / HSBhsv(242, 75%, 55%)
CMYKcmyk(72%, 75%, 0%, 45%)
CIE LABlab(21.93, 36.64, -56.7)
CIE LCHlch(21.93, 67.51, 302.87)
CIE XYZxyz(6.096, 3.497, 24.775)
Decimal2565003
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #27238B, 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 #27238BRatioAAAAAAA large
Sample text1.7:1FailFailFail
Sample text12.36:1PassPassPass
#27238B as text onRatioAAAAAAA large
Sample text12.36:1PassPassPass
Sample text1.7: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 #27238B looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #27238b; }
.text { color: #27238b; }
.border { border: 2px solid #27238b; }
.transparent { background-color: rgb(39 35 139 / 50%); }
.gradient { background: linear-gradient(to right, #27238b, #5b238b); }
Background
Text color
Border

Similar colors

Closest common color name: Midnight Blue.

Questions

What color is #27238B?
#27238B is a dark, moderate blue, closest to the named color Gentian Blue. It belongs to the blue family of colors.
What is the RGB value of #27238B?
The RGB value is 39, 35, 139: 39 red, 35 green and 139 blue on a 0 to 255 scale.
What is the complementary color of #27238B?
The complementary color is #878B23, found by rotating the hue 180° on the color wheel.
Is black or white text better on #27238B?
White text. Black text has a contrast ratio of 1.7:1 and white text 12.36:1. WCAG asks for at least 4.5:1 for normal text.