Skip to content

#0f3fac

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

RGB
15, 63, 172
HSL
222°, 84%, 37%
CMYK
91, 63, 0, 33
Luminance
0.0664

Every format

HEX#0f3fac
RGBrgb(15, 63, 172)
HSLhsl(222, 84%, 37%)
CMYKcmyk(91%, 63%, 0%, 33%)
LABlab(31.0 29.0 -62.0)
LCHlch(31.0 68.5 295.0)
OKLCHoklch(0.416 0.181 263.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f3fac on white: 9.02:1
AA ✓ pass · AA-large · AAA
Aa
#0f3fac on black: 2.33:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green24.7%
Blue67.5%

CMYK percentages

Cyan91.3%
Magenta63.4%
Yellow0.0%
Key (black)32.5%

Color previews

#0f3fac text on a black background

contrast 2.33:1

Card sample

#0f3fac text on a white background

contrast 9.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 63, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 63, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f3fac;
background: linear-gradient(135deg, #0f3fac, #480FAC);

Monochromatic scale

Palettes built from #0f3fac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f3fac in the Color Lab