Skip to content

#0b397b

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

RGB
11, 57, 123
HSL
215°, 84%, 26%
CMYK
91, 54, 0, 52
Luminance
0.0443

Every format

HEX#0b397b
RGBrgb(11, 57, 123)
HSLhsl(215, 84%, 26%)
CMYKcmyk(91%, 54%, 0%, 52%)
LABlab(25.0 12.6 -41.6)
LCHlch(25.0 43.5 286.9)
OKLCHoklch(0.358 0.122 258.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0b397b on white: 11.14:1
AA ✓ pass · AA-large · AAA
Aa
#0b397b on black: 1.89:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.3%
Green22.4%
Blue48.2%

CMYK percentages

Cyan91.1%
Magenta53.7%
Yellow0.0%
Key (black)51.8%

Color previews

#0b397b text on a black background

contrast 1.89:1

Card sample

#0b397b text on a white background

contrast 11.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(11, 57, 123, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(11, 57, 123, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0b397b;
background: linear-gradient(135deg, #0b397b, #280B7B);

Monochromatic scale

Palettes built from #0b397b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0b397b in the Color Lab