Skip to content

#0798eb

a balanced, electric blue · cool · closest name: Dodger Blue

RGB
7, 152, 235
HSL
202°, 94%, 48%
CMYK
97, 35, 0, 8
Luminance
0.2850

At a glance

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

Hex
#0798eb
Hue
202°
blue
Saturation
94%
electric
Lightness
48%
balanced
Brightness
92%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2850
WCAG relative
Temperature
Cool
97/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
6.70:1
Closest name
Dodger Blue
ΔE2000 5.3
Where it sits
Hue202° of 360°
Saturation94%
Lightness48%
Temperature
Warm ← → Cool97% 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#0798eb
RGBrgb(7, 152, 235)
HSLhsl(202, 94%, 48%)
CMYKcmyk(97%, 35%, 0%, 8%)
LABlab(60.3 -3.2 -50.9)
LCHlch(60.3 51.0 266.4)
OKLCHoklch(0.655 0.161 244.3)
Decimal497899
Display P3color(display-p3 0.027 0.596 0.922)

Copy-ready code

/* CSS */
color: #0798eb;
background-color: #0798eb;
/* Tailwind (arbitrary) */
class="text-[#0798eb] bg-[#0798eb]"
/* SCSS */
$brand: #0798eb;
/* SwiftUI */
Color(red: 0.027, green: 0.596, blue: 0.922)
/* Android */
Color.parseColor("#0798eb")
/* Flutter */
Color(0xFF0798EB)
/* Python / OpenCV (BGR) */
(235, 152, 7)

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#000000 on #0798eb · 6.70:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.13:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.70:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #0798eb as text scores 3.13:1 on white and 6.70:1 on black.

Accessibility — WCAG contrast

Aa
#0798eb on white: 3.13:1
AA ✗ fail · AA-large · AAA
Aa
#0798eb on black: 6.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #709BEE
deuteranopia · #5189E9
tritanopia · #00ACB6

Color scale — 50 to 950

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

#F2F9FD
#E4F3FB
#C2E5FA
#92D5FC
#5CC1FA
#25ACF8
#0798eb
#0680C6
#05679E
#084C72
#052F47
Base = 600Lightest = 50 · #F2F9FDDarkest = 950 · #052F47
:root {
  --brand-50: #F2F9FD;
  --brand-100: #E4F3FB;
  --brand-200: #C2E5FA;
  --brand-300: #92D5FC;
  --brand-400: #5CC1FA;
  --brand-500: #25ACF8;
  --brand-600: #0798eb;
  --brand-700: #0680C6;
  --brand-800: #05679E;
  --brand-900: #084C72;
  --brand-950: #052F47;
  --brand: #0798eb;
  --brand-ink: #000000;
}

Colors that work with #0798eb

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

Text on it#000000
Black wins here
Surface#F4F8FA
Tinted page background
Border#C0DCED
Hairlines and dividers
Muted text#4B7E9B
Captions on the surface
Accent#F01D02
Second voice, not a rival
Dark variant#04507C
Hover, pressed, headers
Light variant#E6F6FE
Selected rows, tints
Dark surface#141E24
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 #0798eb

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

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • 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#EB5A07
Analogous left#07EBCC
Analogous right#0726EB
Split-complement 1#EB0726
Split-complement 2#EBCC07
Triadic 1#EB0798
Triadic 2#98EB07
Tetradic#CC07EB

RGB percentages

Red2.7%
Green59.6%
Blue92.2%

CMYK percentages

Cyan97.0%
Magenta35.3%
Yellow0.0%
Key (black)7.8%

Color previews

#0798eb text on a black background

contrast 6.70:1

Card sample

#0798eb text on a white background

contrast 3.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0798eb;
Background color
Panel with #0798eb background
background-color: #0798eb;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #0798eb;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(7, 152, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(7, 152, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0798eb;
background: linear-gradient(135deg, #0798eb, #0E07EB);

Monochromatic scale

Palettes built from #0798eb

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.

#0798eb 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#0798eb, answered

What color is #0798eb?

#0798eb is a balanced electric blue, closest to Dodger Blue (ΔE2000 5.3). It sits at 202° on the hue wheel with 94% saturation and 48% lightness, which reads as cool.

What is the RGB value of #0798eb?

rgb(7, 152, 235) — 7 red, 152 green and 235 blue out of 255, or 2.7% / 59.6% / 92.2% by channel.

Is #0798eb a light or a dark color?

It is a mid-tone. Relative luminance is 0.2850 and perceived brightness is 55%, so black text on it reaches 6.70:1.

Should I use black or white text on #0798eb?

Black. It scores 6.70:1 against #0798eb, versus 3.13:1 for white — AA at any size.

What is the complementary color of #0798eb?

#EB5A07 sits directly opposite on the wheel. Softer options are the split-complements #EB0726 and #EBCC07, which give the same contrast with far less vibration.

What colors go well with #0798eb?

For interface work: #F4F8FA as the surface, #C0DCED for borders, #4B7E9B for secondary text, #F01D02 as an accent and #04507C for hover and pressed states. For a palette, the analogous pair #07EBCC and #0726EB stays calm, while #EB5A07 is the loudest partner.

What is #0798eb in CMYK for printing?

cmyk(97%, 35%, 0%, 8%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #0798eb warm or cool?

Cool — it scores 97 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #07EBEA; nudged cooler, #0479D5.

Work with #0798eb in the Color Lab