Skip to content

#0b309c

a dark, electric blue · cool · closest name: midnightblue

RGB
11, 48, 156
HSL
225°, 87%, 33%
CMYK
93, 69, 0, 39
Luminance
0.0459

Every format

HEX#0b309c
RGBrgb(11, 48, 156)
HSLhsl(225, 87%, 33%)
CMYKcmyk(93%, 69%, 0%, 39%)
LABlab(25.5 32.5 -61.3)
LCHlch(25.5 69.4 298.0)
OKLCHoklch(0.370 0.179 264.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0b309c on white: 10.95:1
AA ✓ pass · AA-large · AAA
Aa
#0b309c on black: 1.92:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.3%
Green18.8%
Blue61.2%

CMYK percentages

Cyan92.9%
Magenta69.2%
Yellow0.0%
Key (black)38.8%

Color previews

#0b309c text on a black background

contrast 1.92:1

Card sample

#0b309c text on a white background

contrast 10.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(11, 48, 156, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(11, 48, 156, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0b309c;
background: linear-gradient(135deg, #0b309c, #470B9C);

Monochromatic scale

Palettes built from #0b309c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0b309c in the Color Lab