Skip to content

#0f64cd

a dark, electric blue · cool · closest name: royalblue

RGB
15, 100, 205
HSL
213°, 86%, 43%
CMYK
93, 51, 0, 20
Luminance
0.1362

Every format

HEX#0f64cd
RGBrgb(15, 100, 205)
HSLhsl(213, 86%, 43%)
CMYKcmyk(93%, 51%, 0%, 20%)
LABlab(43.7 17.5 -60.6)
LCHlch(43.7 63.1 286.1)
OKLCHoklch(0.520 0.179 257.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f64cd on white: 5.64:1
AA ✓ pass · AA-large · AAA
Aa
#0f64cd on black: 3.72:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green39.2%
Blue80.4%

CMYK percentages

Cyan92.7%
Magenta51.2%
Yellow0.0%
Key (black)19.6%

Color previews

#0f64cd text on a black background

contrast 3.72:1

Card sample

#0f64cd text on a white background

contrast 5.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 100, 205, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 100, 205, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f64cd;
background: linear-gradient(135deg, #0f64cd, #390FCD);

Monochromatic scale

Palettes built from #0f64cd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f64cd in the Color Lab