Skip to content

#082f64

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

RGB
8, 47, 100
HSL
215°, 85%, 21%
CMYK
92, 53, 0, 61
Luminance
0.0300

Every format

HEX#082f64
RGBrgb(8, 47, 100)
HSLhsl(215, 85%, 21%)
CMYKcmyk(92%, 53%, 0%, 61%)
LABlab(20.1 9.6 -34.9)
LCHlch(20.1 36.2 285.3)
OKLCHoklch(0.314 0.103 257.9)

Copy-ready code

/* CSS */
color: #082f64;
background-color: #082f64;
/* Tailwind (arbitrary) */
class="text-[#082f64] bg-[#082f64]"
/* SCSS */
$brand: #082f64;
/* SwiftUI */
Color(red: 0.031, green: 0.184, blue: 0.392)
/* Android */
Color.parseColor("#082f64")

Accessibility — WCAG contrast

Aa
#082f64 on white: 13.12:1
AA ✓ pass · AA-large · AAA
Aa
#082f64 on black: 1.60:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red3.1%
Green18.4%
Blue39.2%

CMYK percentages

Cyan92.0%
Magenta53.0%
Yellow0.0%
Key (black)60.8%

Color previews

#082f64 text on a black background

contrast 1.60:1

Card sample

#082f64 text on a white background

contrast 13.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #082f64;
Background color
Panel with #082f64 background
background-color: #082f64;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #082f64;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(8, 47, 100, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 47, 100, 0.45);
Border & gradient
Gradient panel
border: 3px solid #082f64;
background: linear-gradient(135deg, #082f64, #1E0864);

Monochromatic scale

Palettes built from #082f64

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #082f64 in the Color Lab