Skip to content

#0f2ecc

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

RGB
15, 46, 204
HSL
230°, 86%, 43%
CMYK
93, 78, 0, 20
Luminance
0.0642

Every format

HEX#0f2ecc
RGBrgb(15, 46, 204)
HSLhsl(230, 86%, 43%)
CMYKcmyk(93%, 78%, 0%, 20%)
LABlab(30.4 51.2 -81.8)
LCHlch(30.4 96.5 302.0)
OKLCHoklch(0.421 0.238 265.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f2ecc on white: 9.20:1
AA ✓ pass · AA-large · AAA
Aa
#0f2ecc on black: 2.28:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green18.0%
Blue80.0%

CMYK percentages

Cyan92.6%
Magenta77.5%
Yellow0.0%
Key (black)20.0%

Color previews

#0f2ecc text on a black background

contrast 2.28:1

Card sample

#0f2ecc text on a white background

contrast 9.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 46, 204, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 46, 204, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f2ecc;
background: linear-gradient(135deg, #0f2ecc, #6E0FCC);

Monochromatic scale

Palettes built from #0f2ecc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f2ecc in the Color Lab