Skip to content

#0f0f94

a dark, electric blue · warm · closest name: navy

RGB
15, 15, 148
HSL
240°, 82%, 32%
CMYK
90, 90, 0, 42
Luminance
0.0258

Every format

HEX#0f0f94
RGBrgb(15, 15, 148)
HSLhsl(240, 82%, 32%)
CMYKcmyk(90%, 90%, 0%, 42%)
LABlab(18.3 48.1 -68.4)
LCHlch(18.3 83.6 305.1)
OKLCHoklch(0.317 0.198 267.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f0f94 on white: 13.85:1
AA ✓ pass · AA-large · AAA
Aa
#0f0f94 on black: 1.52:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green5.9%
Blue58.0%

CMYK percentages

Cyan89.9%
Magenta89.9%
Yellow0.0%
Key (black)42.0%

Color previews

#0f0f94 text on a black background

contrast 1.52:1

Card sample

#0f0f94 text on a white background

contrast 13.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 15, 148, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 15, 148, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f0f94;
background: linear-gradient(135deg, #0f0f94, #680F94);

Monochromatic scale

Palettes built from #0f0f94

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f0f94 in the Color Lab