#0A1F2A color
The hex color #0A1F2A is a very dark, moderate azure.
In the RGB color model it is made of 3.9% red, 12.2% green and 16.5% blue (10, 31, 42).
Its hue angle is 201°, with 62% saturation and 10% lightness. For print, the CMYK equivalent is 76% cyan, 26% magenta, 0% yellow and 84% black.
The closest named color is Midnight Dreams (#002233), a difference of 3.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 16.9:1).
#0A1F2A color codes
| HEX | #0A1F2A | |
|---|---|---|
| RGB | rgb(10, 31, 42) | |
| RGB percent | rgb(3.9%, 12.2%, 16.5%) | |
| HSL | hsl(201, 62%, 10%) | |
| HSV / HSB | hsv(201, 76%, 16%) | |
| CMYK | cmyk(76%, 26%, 0%, 84%) | |
| CIE LAB | lab(10.64, -4.09, -9.9) | |
| CIE LCH | lch(10.64, 10.71, 247.57) | |
| CIE XYZ | xyz(1.033, 1.212, 2.369) | |
| Decimal | 663338 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0A1F2A, 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 #0A1F2A | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.24:1 | Fail | Fail | Fail |
| Sample text | 16.9:1 | Pass | Pass | Pass |
| #0A1F2A as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 16.9:1 | Pass | Pass | Pass |
| Sample text | 1.24: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 #0A1F2A looks to people with the most common types of color vision deficiency.
#1a1f2bProtanopia
no red cones#151b2aDeuteranopia
no green cones#002223Tritanopia
no blue cones#1d1d1dAchromatopsia
no color vision
CSS examples
.background { background-color: #0a1f2a; }
.text { color: #0a1f2a; }
.border { border: 2px solid #0a1f2a; }
.transparent { background-color: rgb(10 31 42 / 50%); }
.gradient { background: linear-gradient(to right, #0a1f2a, #0a0f2a); }
Similar colors
#002233Midnight Dreams#172b36Oceanic Noir#102030The Count’s Black#0f282fBlack Box#10252aSunken Ship#001b2eOxford by Night#0e191cBlack Stallion#1e272cBlack Pearl
Closest common color name: Rich Black.
Questions
- What color is #0A1F2A?
- #0A1F2A is a very dark, moderate azure, closest to the named color Midnight Dreams. It belongs to the black family of colors.
- What is the RGB value of #0A1F2A?
- The RGB value is 10, 31, 42: 10 red, 31 green and 42 blue on a 0 to 255 scale.
- What is the complementary color of #0A1F2A?
- The complementary color is #2A150A, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0A1F2A?
- White text. Black text has a contrast ratio of 1.24:1 and white text 16.9:1. WCAG asks for at least 4.5:1 for normal text.