Skip to content

#4f26cf

a balanced, vivid blue · warm · closest name: navy

RGB
79, 38, 207
HSL
255°, 69%, 48%
CMYK
62, 82, 0, 19
Luminance
0.0755

Every format

HEX#4f26cf
RGBrgb(79, 38, 207)
HSLhsl(255, 69%, 48%)
CMYKcmyk(62%, 82%, 0%, 19%)
LABlab(33.0 59.9 -79.1)
LCHlch(33.0 99.3 307.1)
OKLCHoklch(0.450 0.234 282.7)

Copy-ready code

/* CSS */
color: #4f26cf;
background-color: #4f26cf;
/* Tailwind (arbitrary) */
class="text-[#4f26cf] bg-[#4f26cf]"
/* SCSS */
$brand: #4f26cf;
/* SwiftUI */
Color(red: 0.310, green: 0.149, blue: 0.812)
/* Android */
Color.parseColor("#4f26cf")

Accessibility — WCAG contrast

Aa
#4f26cf on white: 8.36:1
AA ✓ pass · AA-large · AAA
Aa
#4f26cf on black: 2.51:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green14.9%
Blue81.2%

CMYK percentages

Cyan61.8%
Magenta81.6%
Yellow0.0%
Key (black)18.8%

Color previews

#4f26cf text on a black background

contrast 2.51:1

Card sample

#4f26cf text on a white background

contrast 8.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4f26cf;
Background color
Panel with #4f26cf background
background-color: #4f26cf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #4f26cf;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(79, 38, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 38, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f26cf;
background: linear-gradient(135deg, #4f26cf, #C026CF);

Monochromatic scale

Palettes built from #4f26cf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f26cf in the Color Lab