#313233 color
The hex color #313233 is a dark gray.
In the RGB color model it is made of 19.2% red, 19.6% green and 20% blue (49, 50, 51).
Its hue angle is 210°, with 2% saturation and 20% lightness. For print, the CMYK equivalent is 4% cyan, 2% magenta, 0% yellow and 80% black.
The closest named color is Carbon (#333333), a difference of 0.9 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 12.85:1).
#313233 color codes
| HEX | #313233 | |
|---|---|---|
| RGB | rgb(49, 50, 51) | |
| RGB percent | rgb(19.2%, 19.6%, 20%) | |
| HSL | hsl(210, 2%, 20%) | |
| HSV / HSB | hsv(210, 4%, 20%) | |
| CMYK | cmyk(4%, 2%, 0%, 80%) | |
| CIE LAB | lab(20.72, -0.2, -0.79) | |
| CIE LCH | lch(20.72, 0.81, 255.82) | |
| CIE XYZ | xyz(3.005, 3.173, 3.586) | |
| Decimal | 3224115 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #313233, 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 #313233 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.63:1 | Fail | Fail | Fail |
| Sample text | 12.85:1 | Pass | Pass | Pass |
| #313233 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.85:1 | Pass | Pass | Pass |
| Sample text | 1.63: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 #313233 looks to people with the most common types of color vision deficiency.
#323233Protanopia
no red cones#313233Deuteranopia
no green cones#313232Tritanopia
no blue cones#323232Achromatopsia
no color vision
CSS examples
.background { background-color: #313233; }
.text { color: #313233; }
.border { border: 2px solid #313233; }
.transparent { background-color: rgb(49 50 51 / 50%); }
.gradient { background: linear-gradient(to right, #313233, #313133); }
Similar colors
#333333Carbon#343434Jet Black#333232Dark Charcoal#2e2e2eCarbon Fibre#383838Graphite#383838Lacquered Liquorice#353838Wet Concrete#2a2a2aThe End
Questions
- What color is #313233?
- #313233 is a dark gray, closest to the named color Carbon. It belongs to the gray family of colors.
- What is the RGB value of #313233?
- The RGB value is 49, 50, 51: 49 red, 50 green and 51 blue on a 0 to 255 scale.
- What is the complementary color of #313233?
- The complementary color is #333231, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #313233?
- White text. Black text has a contrast ratio of 1.63:1 and white text 12.85:1. WCAG asks for at least 4.5:1 for normal text.