#30317F color
The hex color #30317F is a dark, desaturated blue.
In the RGB color model it is made of 18.8% red, 19.2% green and 49.8% blue (48, 49, 127).
Its hue angle is 239°, with 45% saturation and 34% lightness. For print, the CMYK equivalent is 62% cyan, 61% magenta, 0% yellow and 50% black.
The closest named color is Intergalactic Highway (#273287), a difference of 2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 11.22:1).
#30317F color codes
| HEX | #30317F | |
|---|---|---|
| RGB | rgb(48, 49, 127) | |
| RGB percent | rgb(18.8%, 19.2%, 49.8%) | |
| HSL | hsl(239, 45%, 34%) | |
| HSV / HSB | hsv(239, 62%, 50%) | |
| CMYK | cmyk(62%, 61%, 0%, 50%) | |
| CIE LAB | lab(24.82, 24.76, -44.42) | |
| CIE LCH | lch(24.82, 50.86, 299.13) | |
| CIE XYZ | xyz(6.147, 4.357, 20.592) | |
| Decimal | 3158399 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #30317F, 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 #30317F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.87:1 | Fail | Fail | Fail |
| Sample text | 11.22:1 | Pass | Pass | Pass |
| #30317F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.22:1 | Pass | Pass | Pass |
| Sample text | 1.87: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 #30317F looks to people with the most common types of color vision deficiency.
#003e82Protanopia
no red cones#00387dDeuteranopia
no green cones#004453Tritanopia
no blue cones#3b3b3bAchromatopsia
no color vision
CSS examples
.background { background-color: #30317f; }
.text { color: #30317f; }
.border { border: 2px solid #30317f; }
.transparent { background-color: rgb(48 49 127 / 50%); }
.gradient { background: linear-gradient(to right, #30317f, #57307f); }
Similar colors
#273287Intergalactic Highway#223382Deep Space Royal#313390Perfect Dark#2b3191Royal Night#443388Majestic Eggplant#1c3378Twilight Express#2d3796Liquid Denim#333399Bluebell
Closest common color name: Dark Slate Blue.
Questions
- What color is #30317F?
- #30317F is a dark, desaturated blue, closest to the named color Intergalactic Highway. It belongs to the blue family of colors.
- What is the RGB value of #30317F?
- The RGB value is 48, 49, 127: 48 red, 49 green and 127 blue on a 0 to 255 scale.
- What is the complementary color of #30317F?
- The complementary color is #7F7E30, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #30317F?
- White text. Black text has a contrast ratio of 1.87:1 and white text 11.22:1. WCAG asks for at least 4.5:1 for normal text.