Skip to content

#302abc

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

RGB
48, 42, 188
HSL
243°, 64%, 45%
CMYK
75, 78, 0, 26
Luminance
0.0592

Every format

HEX#302abc
RGBrgb(48, 42, 188)
HSLhsl(243, 64%, 45%)
CMYKcmyk(75%, 78%, 0%, 26%)
LABlab(29.2 49.8 -74.4)
LCHlch(29.2 89.5 303.8)
OKLCHoklch(0.411 0.216 273.3)

Copy-ready code

/* CSS */
color: #302abc;
background-color: #302abc;
/* Tailwind (arbitrary) */
class="text-[#302abc] bg-[#302abc]"
/* SCSS */
$brand: #302abc;
/* SwiftUI */
Color(red: 0.188, green: 0.165, blue: 0.737)
/* Android */
Color.parseColor("#302abc")

Accessibility — WCAG contrast

Aa
#302abc on white: 9.62:1
AA ✓ pass · AA-large · AAA
Aa
#302abc on black: 2.18:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.8%
Green16.5%
Blue73.7%

CMYK percentages

Cyan74.5%
Magenta77.7%
Yellow0.0%
Key (black)26.3%

Color previews

#302abc text on a black background

contrast 2.18:1

Card sample

#302abc text on a white background

contrast 9.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #302abc;
Background color
Panel with #302abc background
background-color: #302abc;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #302abc;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(48, 42, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(48, 42, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #302abc;
background: linear-gradient(135deg, #302abc, #912ABC);

Monochromatic scale

Palettes built from #302abc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #302abc in the Color Lab