#27238B color
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 | |
|---|---|---|
| RGB | rgb(39, 35, 139) | |
| RGB percent | rgb(15.3%, 13.7%, 54.5%) | |
| HSL | hsl(242, 60%, 34%) | |
| HSV / HSB | hsv(242, 75%, 55%) | |
| CMYK | cmyk(72%, 75%, 0%, 45%) | |
| CIE LAB | lab(21.93, 36.64, -56.7) | |
| CIE LCH | lch(21.93, 67.51, 302.87) | |
| CIE XYZ | xyz(6.096, 3.497, 24.775) | |
| Decimal | 2565003 | |
| Short hex | None (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 #27238B | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.7:1 | Fail | Fail | Fail |
| Sample text | 12.36:1 | Pass | Pass | Pass |
| #27238B as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.36:1 | Pass | Pass | Pass |
| Sample text | 1.7:1 | Fail | Fail | Fail |
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.
#00398eProtanopia
no red cones#003089Deuteranopia
no green cones#004155Tritanopia
no blue cones#353535Achromatopsia
no color vision
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); }
Similar colors
#312297Gentian Blue#082599Deepsea Kraken#002299Space Dust#002489Lost in Heaven#301885Indiglow#072688Naval Adventures#0c1793Royal#332277Deep Space Rodeo
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.