Midnight Ocean color: hex code #0F2D4D
Midnight Ocean has the hex code #0F2D4D. It is a very dark, moderate azure.
In the RGB color model it is made of 5.9% red, 17.6% green and 30.2% blue (15, 45, 77).
Its hue angle is 211°, with 67% saturation and 18% lightness. For print, the CMYK equivalent is 81% cyan, 42% magenta, 0% yellow and 70% black.
White text is the more readable choice on this background (contrast 13.97:1).
Midnight Ocean (#0F2D4D) color codes
| HEX | #0F2D4D | |
|---|---|---|
| RGB | rgb(15, 45, 77) | |
| RGB percent | rgb(5.9%, 17.6%, 30.2%) | |
| HSL | hsl(211, 67%, 18%) | |
| HSV / HSB | hsv(211, 81%, 30%) | |
| CMYK | cmyk(81%, 42%, 0%, 70%) | |
| CIE LAB | lab(17.98, 1.72, -22.94) | |
| CIE LCH | lch(17.98, 23, 274.28) | |
| CIE XYZ | xyz(2.474, 2.514, 7.375) | |
| Decimal | 994637 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with Midnight Ocean, 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 #0F2D4D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.5:1 | Fail | Fail | Fail |
| Sample text | 13.97:1 | Pass | Pass | Pass |
| #0F2D4D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.97:1 | Pass | Pass | Pass |
| Sample text | 1.5: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 #0F2D4D looks to people with the most common types of color vision deficiency.
#1e2f4eProtanopia
no red cones#15294cDeuteranopia
no green cones#003539Tritanopia
no blue cones#2c2c2cAchromatopsia
no color vision
CSS examples
.background { background-color: #0f2d4d; }
.text { color: #0f2d4d; }
.border { border: 2px solid #0f2d4d; }
.transparent { background-color: rgb(15 45 77 / 50%); }
.gradient { background: linear-gradient(to right, #0f2d4d, #100f4d); }
Similar colors
#0a3251Beyond the Stars#003153Prussian Blue#042e60Marine#002147Oxford Blue#001f3fMidnight Mirage#1c2841Eternal Darkness#0b334dSea of Stars#112244Dark Eclipse
See #0F2D4D on its hex code page
Questions
- What color is #0F2D4D?
- #0F2D4D is a very dark, moderate azure known as Midnight Ocean. It belongs to the blue family of colors.
- What is the RGB value of Midnight Ocean?
- The RGB value is 15, 45, 77: 15 red, 45 green and 77 blue on a 0 to 255 scale.
- What is the complementary color of Midnight Ocean?
- The complementary color is #4D2F0F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0F2D4D?
- White text. Black text has a contrast ratio of 1.5:1 and white text 13.97:1. WCAG asks for at least 4.5:1 for normal text.