#331FAD color
The hex color #331FAD is a moderate blue.
In the RGB color model it is made of 20% red, 12.2% green and 67.8% blue (51, 31, 173).
Its hue angle is 248°, with 70% saturation and 40% lightness. For print, the CMYK equivalent is 71% cyan, 82% magenta, 0% yellow and 32% black.
The closest named color is Sapphire Splendour (#2425B9), a difference of 2.3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 10.82:1).
#331FAD color codes
| HEX | #331FAD | |
|---|---|---|
| RGB | rgb(51, 31, 173) | |
| RGB percent | rgb(20%, 12.2%, 67.8%) | |
| HSL | hsl(248, 70%, 40%) | |
| HSV / HSB | hsv(248, 82%, 68%) | |
| CMYK | cmyk(71%, 82%, 0%, 32%) | |
| CIE LAB | lab(25.86, 50.75, -70.99) | |
| CIE LCH | lch(25.86, 87.26, 305.56) | |
| CIE XYZ | xyz(9.396, 4.7, 39.939) | |
| Decimal | 3350445 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #331FAD, 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 #331FAD | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.94:1 | Fail | Fail | Fail |
| Sample text | 10.82:1 | Pass | Pass | Pass |
| #331FAD as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.82:1 | Pass | Pass | Pass |
| Sample text | 1.94: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 #331FAD looks to people with the most common types of color vision deficiency.
#0043b1Protanopia
no red cones#0037abDeuteranopia
no green cones#004c67Tritanopia
no blue cones#3d3d3dAchromatopsia
no color vision
CSS examples
.background { background-color: #331fad; }
.text { color: #331fad; }
.border { border: 2px solid #331fad; }
.transparent { background-color: rgb(51 31 173 / 50%); }
.gradient { background: linear-gradient(to right, #331fad, #7a1fad); }
Similar colors
#2425b9Sapphire Splendour#3311bbGalactic Highway#312297Gentian Blue#0011bbToo Dark Tonight#0018a8Dark Galaxy#030aa7Cobalt#1f22d2Lapis on Neptune#002299Space Dust
Closest common color name: Medium Blue.
Questions
- What color is #331FAD?
- #331FAD is a moderate blue, closest to the named color Sapphire Splendour. It belongs to the blue family of colors.
- What is the RGB value of #331FAD?
- The RGB value is 51, 31, 173: 51 red, 31 green and 173 blue on a 0 to 255 scale.
- What is the complementary color of #331FAD?
- The complementary color is #99AD1F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #331FAD?
- White text. Black text has a contrast ratio of 1.94:1 and white text 10.82:1. WCAG asks for at least 4.5:1 for normal text.