Skip to content

#0c01ff

a balanced, electric blue · warm · “blue”

RGB
12, 1, 255
HSL
243°, 100%, 50%
CMYK
95, 100, 0, 0
Luminance
0.0732

Every format

HEX#0c01ff
RGBrgb(12, 1, 255)
HSLhsl(243, 100%, 50%)
CMYKcmyk(95%, 100%, 0%, 0%)
LABlab(32.5 79.1 -107.5)
LCHlch(32.5 133.4 306.3)
OKLCHoklch(0.454 0.312 264.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0c01ff on white: 8.52:1
AA ✓ pass · AA-large · AAA
Aa
#0c01ff on black: 2.46:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.7%
Green0.4%
Blue100.0%

CMYK percentages

Cyan95.3%
Magenta99.6%
Yellow0.0%
Key (black)0.0%

Color previews

#0c01ff text on a black background

contrast 2.46:1

Card sample

#0c01ff text on a white background

contrast 8.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(12, 1, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 1, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0c01ff;
background: linear-gradient(135deg, #0c01ff, #B501FF);

Monochromatic scale

Palettes built from #0c01ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0c01ff in the Color Lab