Skip to content

#0c1dfd

a balanced, electric blue · warm · closest name: blue

RGB
12, 29, 253
HSL
236°, 98%, 52%
CMYK
95, 89, 0, 1
Luminance
0.0805

Every format

HEX#0c1dfd
RGBrgb(12, 29, 253)
HSLhsl(236, 98%, 52%)
CMYKcmyk(95%, 89%, 0%, 1%)
LABlab(34.1 72.9 -103.8)
LCHlch(34.1 126.8 305.1)
OKLCHoklch(0.464 0.301 264.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0c1dfd on white: 8.05:1
AA ✓ pass · AA-large · AAA
Aa
#0c1dfd on black: 2.61:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.7%
Green11.4%
Blue99.2%

CMYK percentages

Cyan95.3%
Magenta88.5%
Yellow0.0%
Key (black)0.8%

Color previews

#0c1dfd text on a black background

contrast 2.61:1

Card sample

#0c1dfd text on a white background

contrast 8.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(12, 29, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 29, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0c1dfd;
background: linear-gradient(135deg, #0c1dfd, #9C0CFD);

Monochromatic scale

Palettes built from #0c1dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0c1dfd in the Color Lab