Skip to content

#0000ff

a balanced, electric blue · warm · “blue”

RGB
0, 0, 255
HSL
240°, 100%, 50%
CMYK
100, 100, 0, 0
Luminance
0.0722

Every format

HEX#0000ff
RGBrgb(0, 0, 255)
HSLhsl(240, 100%, 50%)
CMYKcmyk(100%, 100%, 0%, 0%)
LABlab(32.3 79.2 -107.9)
LCHlch(32.3 133.8 306.3)
OKLCHoklch(0.452 0.313 264.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0000ff on white: 8.59:1
AA ✓ pass · AA-large · AAA
Aa
#0000ff on black: 2.44:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red0.0%
Green0.0%
Blue100.0%

CMYK percentages

Cyan100.0%
Magenta100.0%
Yellow0.0%
Key (black)0.0%

Color previews

#0000ff text on a black background

contrast 2.44:1

Card sample

#0000ff text on a white background

contrast 8.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0000ff;
Background color
Panel with #0000ff background
background-color: #0000ff;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #0000ff;
Text shadow — RGB

Soft neon halo

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

Monochromatic scale

Palettes built from #0000ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0000ff in the Color Lab