Skip to content

#0a0a2e

a deep, vivid blue · warm · closest name: black

RGB
10, 10, 46
HSL
240°, 64%, 11%
CMYK
78, 78, 0, 82
Luminance
0.0048

Every format

HEX#0a0a2e
RGBrgb(10, 10, 46)
HSLhsl(240, 64%, 11%)
CMYKcmyk(78%, 78%, 0%, 82%)
LABlab(4.3 11.1 -22.8)
LCHlch(4.3 25.4 296.0)
OKLCHoklch(0.174 0.070 276.3)

Copy-ready code

/* CSS */
color: #0a0a2e;
background-color: #0a0a2e;
/* Tailwind (arbitrary) */
class="text-[#0a0a2e] bg-[#0a0a2e]"
/* SCSS */
$brand: #0a0a2e;
/* SwiftUI */
Color(red: 0.039, green: 0.039, blue: 0.180)
/* Android */
Color.parseColor("#0a0a2e")

Accessibility — WCAG contrast

Aa
#0a0a2e on white: 19.16:1
AA ✓ pass · AA-large · AAA
Aa
#0a0a2e on black: 1.10:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red3.9%
Green3.9%
Blue18.0%

CMYK percentages

Cyan78.3%
Magenta78.3%
Yellow0.0%
Key (black)82.0%

Color previews

#0a0a2e text on a black background

contrast 1.10:1

Card sample

#0a0a2e text on a white background

contrast 19.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0a0a2e;
Background color
Panel with #0a0a2e background
background-color: #0a0a2e;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #0a0a2e;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(10, 10, 46, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(10, 10, 46, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0a0a2e;
background: linear-gradient(135deg, #0a0a2e, #220A2E);

Monochromatic scale

Palettes built from #0a0a2e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0a0a2e in the Color Lab