Skip to content

#08152b

a deep, vivid blue · cool · closest name: Black

RGB
8, 21, 43
HSL
218°, 69%, 10%
CMYK
81, 51, 0, 83
Luminance
0.0076

At a glance

Every number on this page in one read: what #08152b is made of, how bright it looks, and which way it leans.

Hex
#08152b
Hue
218°
blue
Saturation
69%
vivid
Lightness
10%
deep
Brightness
17%
HSV value
Perceived
9%
weighted brightness
Luminance
0.0076
WCAG relative
Temperature
Cool
96/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
18.22:1
Closest name
Black
ΔE2000 13.1
Where it sits
Hue218° of 360°
Saturation69%
Lightness10%
Temperature
Warm ← → Cool96% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#08152b
RGBrgb(8, 21, 43)
HSLhsl(218, 69%, 10%)
CMYKcmyk(81%, 51%, 0%, 83%)
LABlab(6.9 3.3 -16.5)
LCHlch(6.9 16.9 281.1)
OKLCHoklch(0.198 0.048 260.1)
Decimal529707
Display P3color(display-p3 0.031 0.082 0.169)

Copy-ready code

/* CSS */
color: #08152b;
background-color: #08152b;
/* Tailwind (arbitrary) */
class="text-[#08152b] bg-[#08152b]"
/* SCSS */
$brand: #08152b;
/* SwiftUI */
Color(red: 0.031, green: 0.082, blue: 0.169)
/* Android */
Color.parseColor("#08152b")
/* Flutter */
Color(0xFF08152B)
/* Python / OpenCV (BGR) */
(43, 21, 8)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #08152b · 18.22:1
Use #ffffffAAA at every size.
Aa
White text · 18.22:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.15:1
AA fail · AA large fail · AAA fail
Reading the other direction: #08152b as text scores 18.22:1 on white and 1.15:1 on black.

Accessibility — WCAG contrast

Aa
#08152b on white: 18.22:1
AA ✓ pass · AA-large · AAA
Aa
#08152b on black: 1.15:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0B172C
deuteranopia · #06142B
tritanopia · #001A1D

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #08152b is pinned to step 950; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F3F6FB
#E8EEF8
#CAD9F2
#A0BDED
#719CE5
#427BDC
#2665CE
#2054AC
#1A438A
#173364
#08152b
Base = 950Lightest = 50 · #F3F6FBDarkest = 950 · #08152b
:root {
  --brand-50: #F3F6FB;
  --brand-100: #E8EEF8;
  --brand-200: #CAD9F2;
  --brand-300: #A0BDED;
  --brand-400: #719CE5;
  --brand-500: #427BDC;
  --brand-600: #2665CE;
  --brand-700: #2054AC;
  --brand-800: #1A438A;
  --brand-900: #173364;
  --brand-950: #08152b;
  --brand: #08152b;
  --brand-ink: #ffffff;
}

Colors that work with #08152b

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F4F7FA
Tinted page background
Border#C0D0ED
Hairlines and dividers
Muted text#4B689B
Captions on the surface
Accent#2C1507
Second voice, not a rival
Dark variant#14356B
Hover, pressed, headers
Light variant#EAF0FB
Selected rows, tints
Dark surface#141A24
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #08152b

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#2B1E08
Analogous left#08272B
Analogous right#0C082B
Split-complement 1#2B0C08
Split-complement 2#272B08
Triadic 1#2B0815
Triadic 2#152B08
Tetradic#2B0827

RGB percentages

Red3.1%
Green8.2%
Blue16.9%

CMYK percentages

Cyan81.4%
Magenta51.2%
Yellow0.0%
Key (black)83.1%

Color previews

#08152b text on a black background

contrast 1.15:1

Card sample

#08152b text on a white background

contrast 18.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #08152b;
Background color
Panel with #08152b background
background-color: #08152b;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #08152b;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(8, 21, 43, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 21, 43, 0.45);
Border & gradient
Gradient panel
border: 3px solid #08152b;
background: linear-gradient(135deg, #08152b, #12082B);

Monochromatic scale

Palettes built from #08152b

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#08152b in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#08152b, answered

What color is #08152b?

#08152b is a deep vivid blue, closest to Black (ΔE2000 13.1). It sits at 218° on the hue wheel with 69% saturation and 10% lightness, which reads as cool.

What is the RGB value of #08152b?

rgb(8, 21, 43) — 8 red, 21 green and 43 blue out of 255, or 3.1% / 8.2% / 16.9% by channel.

Is #08152b a light or a dark color?

It is a dark color. Relative luminance is 0.0076 and perceived brightness is 9%, so white text on it reaches 18.22:1.

Should I use black or white text on #08152b?

White. It scores 18.22:1 against #08152b, versus 1.15:1 for black — AAA at any size.

What is the complementary color of #08152b?

#2B1E08 sits directly opposite on the wheel. Softer options are the split-complements #2B0C08 and #272B08, which give the same contrast with far less vibration.

What colors go well with #08152b?

For interface work: #F4F7FA as the surface, #C0D0ED for borders, #4B689B for secondary text, #2C1507 as an accent and #14356B for hover and pressed states. For a palette, the analogous pair #08272B and #0C082B stays calm, while #2B1E08 is the loudest partner.

What is #08152b in CMYK for printing?

cmyk(81%, 51%, 0%, 83%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #08152b warm or cool?

Cool — it scores 96 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #08082B; nudged cooler, #040C16.

Work with #08152b in the Color Lab