Midnight Ocean color: hex code #0F2D4D

#0F2D4D rgb(15, 45, 77)
Shades of blue

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
RGBrgb(15, 45, 77)
RGB percentrgb(5.9%, 17.6%, 30.2%)
HSLhsl(211, 67%, 18%)
HSV / HSBhsv(211, 81%, 30%)
CMYKcmyk(81%, 42%, 0%, 70%)
CIE LABlab(17.98, 1.72, -22.94)
CIE LCHlch(17.98, 23, 274.28)
CIE XYZxyz(2.474, 2.514, 7.375)
Decimal994637
Short hexNone (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 #0F2D4DRatioAAAAAAA large
Sample text1.5:1FailFailFail
Sample text13.97:1PassPassPass
#0F2D4D as text onRatioAAAAAAA large
Sample text13.97:1PassPassPass
Sample text1.5:1FailFailFail

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.

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); }
Background
Text color
Border

Similar colors

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.