#304140 color
The hex color #304140 is a dark, grayish cyan.
In the RGB color model it is made of 18.8% red, 25.5% green and 25.1% blue (48, 65, 64).
Its hue angle is 176°, with 15% saturation and 22% lightness. For print, the CMYK equivalent is 26% cyan, 0% magenta, 2% yellow and 75% black.
The closest named color is Little Mermaid (#2D454A), a difference of 3.7 ΔE, a small difference.
White text is the more readable choice on this background (contrast 10.74:1).
#304140 color codes
| HEX | #304140 | |
|---|---|---|
| RGB | rgb(48, 65, 64) | |
| RGB percent | rgb(18.8%, 25.5%, 25.1%) | |
| HSL | hsl(176, 15%, 22%) | |
| HSV / HSB | hsv(176, 26%, 25%) | |
| CMYK | cmyk(26%, 0%, 2%, 75%) | |
| CIE LAB | lab(26.1, -7.03, -1.62) | |
| CIE LCH | lch(26.1, 7.22, 192.96) | |
| CIE XYZ | xyz(4.034, 4.779, 5.559) | |
| Decimal | 3162432 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #304140, 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 #304140 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.96:1 | Fail | Fail | Fail |
| Sample text | 10.74:1 | Pass | Pass | Pass |
| #304140 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.74:1 | Pass | Pass | Pass |
| Sample text | 1.96: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 #304140 looks to people with the most common types of color vision deficiency.
#3f3f40Protanopia
no red cones#3c3d40Deuteranopia
no green cones#2b4241Tritanopia
no blue cones#3e3e3eAchromatopsia
no color vision
CSS examples
.background { background-color: #304140; }
.text { color: #304140; }
.border { border: 2px solid #304140; }
.transparent { background-color: rgb(48 65 64 / 50%); }
.gradient { background: linear-gradient(to right, #304140, #303941); }
Similar colors
#2d454aLittle Mermaid#27454aMysterious Waters#293432Aztec#3c4f4eNight Watch#224347Emerald Forest#3c463eDeep Forest#424c4aUrban Chic#1c3b42Royal Neptune
Closest common color name: Dark Slate Gray.
Questions
- What color is #304140?
- #304140 is a dark, grayish cyan, closest to the named color Little Mermaid. It belongs to the gray family of colors.
- What is the RGB value of #304140?
- The RGB value is 48, 65, 64: 48 red, 65 green and 64 blue on a 0 to 255 scale.
- What is the complementary color of #304140?
- The complementary color is #413031, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #304140?
- White text. Black text has a contrast ratio of 1.96:1 and white text 10.74:1. WCAG asks for at least 4.5:1 for normal text.