#333148 color
The hex color #333148 is a dark, grayish blue.
In the RGB color model it is made of 20% red, 19.2% green and 28.2% blue (51, 49, 72).
Its hue angle is 245°, with 19% saturation and 24% lightness. For print, the CMYK equivalent is 29% cyan, 32% magenta, 0% yellow and 72% black.
The closest named color is Midnight Masquerade (#2C2E47), a difference of 2.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 12.55:1).
#333148 color codes
| HEX | #333148 | |
|---|---|---|
| RGB | rgb(51, 49, 72) | |
| RGB percent | rgb(20%, 19.2%, 28.2%) | |
| HSL | hsl(245, 19%, 24%) | |
| HSV / HSB | hsv(245, 32%, 28%) | |
| CMYK | cmyk(29%, 32%, 0%, 72%) | |
| CIE LAB | lab(21.46, 6.95, -13.93) | |
| CIE LCH | lch(21.46, 15.57, 296.53) | |
| CIE XYZ | xyz(3.633, 3.368, 6.588) | |
| Decimal | 3354952 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #333148, 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 #333148 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.67:1 | Fail | Fail | Fail |
| Sample text | 12.55:1 | Pass | Pass | Pass |
| #333148 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.55:1 | Pass | Pass | Pass |
| Sample text | 1.67: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 #333148 looks to people with the most common types of color vision deficiency.
#2b3449Protanopia
no red cones#2b3347Deuteranopia
no green cones#2e3539Tritanopia
no blue cones#333333Achromatopsia
no color vision
CSS examples
.background { background-color: #333148; }
.text { color: #333148; }
.border { border: 2px solid #333148; }
.transparent { background-color: rgb(51 49 72 / 50%); }
.gradient { background: linear-gradient(to right, #333148, #3f3148); }
Similar colors
#2c2e47Midnight Masquerade#333344Shuriken#3f354fMaharaja#403547Royal Decree#42364cCall It a Night#3c2f4eSanctum of Shadows#21263aMidnight Express#2e3858Mediaeval Blue
Closest common color name: Dark Purple.
Questions
- What color is #333148?
- #333148 is a dark, grayish blue, closest to the named color Midnight Masquerade. It belongs to the blue family of colors.
- What is the RGB value of #333148?
- The RGB value is 51, 49, 72: 51 red, 49 green and 72 blue on a 0 to 255 scale.
- What is the complementary color of #333148?
- The complementary color is #464831, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #333148?
- White text. Black text has a contrast ratio of 1.67:1 and white text 12.55:1. WCAG asks for at least 4.5:1 for normal text.