Skip to content

#0c2def

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

RGB
12, 45, 239
HSL
231°, 90%, 49%
CMYK
95, 81, 0, 6
Luminance
0.0819

Every format

HEX#0c2def
RGBrgb(12, 45, 239)
HSLhsl(231, 90%, 49%)
CMYKcmyk(95%, 81%, 0%, 6%)
LABlab(34.4 62.8 -95.4)
LCHlch(34.4 114.2 303.3)
OKLCHoklch(0.461 0.278 264.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0c2def on white: 7.96:1
AA ✓ pass · AA-large · AAA
Aa
#0c2def on black: 2.64:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.7%
Green17.6%
Blue93.7%

CMYK percentages

Cyan95.0%
Magenta81.2%
Yellow0.0%
Key (black)6.3%

Color previews

#0c2def text on a black background

contrast 2.64:1

Card sample

#0c2def text on a white background

contrast 7.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(12, 45, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 45, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0c2def;
background: linear-gradient(135deg, #0c2def, #820CEF);

Monochromatic scale

Palettes built from #0c2def

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0c2def in the Color Lab