#232540 color
The hex color #232540 is a very dark, desaturated blue.
In the RGB color model it is made of 13.7% red, 14.5% green and 25.1% blue (35, 37, 64).
Its hue angle is 236°, with 29% saturation and 19% lightness. For print, the CMYK equivalent is 45% cyan, 42% magenta, 0% yellow and 75% black.
The closest named color is Black Market (#222244), a difference of 2.8 ΔE, a small difference.
White text is the more readable choice on this background (contrast 14.89:1).
#232540 color codes
| HEX | #232540 | |
|---|---|---|
| RGB | rgb(35, 37, 64) | |
| RGB percent | rgb(13.7%, 14.5%, 25.1%) | |
| HSL | hsl(236, 29%, 19%) | |
| HSV / HSB | hsv(236, 45%, 25%) | |
| CMYK | cmyk(45%, 42%, 0%, 75%) | |
| CIE LAB | lab(15.75, 7.34, -17.47) | |
| CIE LCH | lch(15.75, 18.95, 292.8) | |
| CIE XYZ | xyz(2.28, 2.051, 5.125) | |
| Decimal | 2303296 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #232540, 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 #232540 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.41:1 | Fail | Fail | Fail |
| Sample text | 14.89:1 | Pass | Pass | Pass |
| #232540 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.89:1 | Pass | Pass | Pass |
| Sample text | 1.41: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 #232540 looks to people with the most common types of color vision deficiency.
#1c2841Protanopia
no red cones#1a263fDeuteranopia
no green cones#1a2a2fTritanopia
no blue cones#272727Achromatopsia
no color vision
CSS examples
.background { background-color: #232540; }
.text { color: #232540; }
.border { border: 2px solid #232540; }
.transparent { background-color: rgb(35 37 64 / 50%); }
.gradient { background: linear-gradient(to right, #232540, #2f2340); }
Similar colors
#222244Black Market#2c2e47Midnight Masquerade#161d3bNightwalker#21263aMidnight Express#151931Dark Knight#1f2133Eclipse Elixir#161e34Sombre Night#222233Black Velvet
Closest common color name: Oxford Blue.
Questions
- What color is #232540?
- #232540 is a very dark, desaturated blue, closest to the named color Black Market. It belongs to the blue family of colors.
- What is the RGB value of #232540?
- The RGB value is 35, 37, 64: 35 red, 37 green and 64 blue on a 0 to 255 scale.
- What is the complementary color of #232540?
- The complementary color is #403E23, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #232540?
- White text. Black text has a contrast ratio of 1.41:1 and white text 14.89:1. WCAG asks for at least 4.5:1 for normal text.