Skip to content

#0f3dac

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

RGB
15, 61, 172
HSL
222°, 84%, 37%
CMYK
91, 65, 0, 33
Luminance
0.0642

Every format

HEX#0f3dac
RGBrgb(15, 61, 172)
HSLhsl(222, 84%, 37%)
CMYKcmyk(91%, 65%, 0%, 33%)
LABlab(30.4 30.3 -62.9)
LCHlch(30.4 69.8 295.7)
OKLCHoklch(0.412 0.184 263.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red5.9%
Green23.9%
Blue67.5%

CMYK percentages

Cyan91.3%
Magenta64.5%
Yellow0.0%
Key (black)32.5%

Color previews

#0f3dac text on a black background

contrast 2.28:1

Card sample

#0f3dac text on a white background

contrast 9.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0f3dac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f3dac in the Color Lab