Skip to content

#266df2

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

RGB
38, 109, 242
HSL
219°, 89%, 55%
CMYK
84, 55, 0, 5
Luminance
0.1776

At a glance

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

Hex
#266df2
Hue
219°
blue
Saturation
89%
electric
Lightness
55%
balanced
Brightness
95%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1776
WCAG relative
Temperature
Cool
95/100 cool
Color family
Blue
Tone
Electric
Best ink
White
4.61:1
Closest name
Royal Blue
ΔE2000 2.9
Where it sits
Hue219° of 360°
Saturation89%
Lightness55%
Temperature
Warm ← → Cool95% 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#266df2
RGBrgb(38, 109, 242)
HSLhsl(219, 89%, 55%)
CMYKcmyk(84%, 55%, 0%, 5%)
LABlab(49.2 27.3 -72.6)
LCHlch(49.2 77.6 290.6)
OKLCHoklch(0.572 0.212 261.5)
Decimal2518514
Display P3color(display-p3 0.149 0.427 0.949)

Copy-ready code

/* CSS */
color: #266df2;
background-color: #266df2;
/* Tailwind (arbitrary) */
class="text-[#266df2] bg-[#266df2]"
/* SCSS */
$brand: #266df2;
/* SwiftUI */
Color(red: 0.149, green: 0.427, blue: 0.949)
/* Android */
Color.parseColor("#266df2")
/* Flutter */
Color(0xFF266DF2)
/* Python / OpenCV (BGR) */
(242, 109, 38)

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

Accessibility — WCAG contrast

Aa
#266df2 on white: 4.61:1
AA ✓ pass · AA-large · AAA
Aa
#266df2 on black: 4.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #007FF7
deuteranopia · #006CEF
tritanopia · #008EA5

Color scale — 50 to 950

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

#F2F6FD
#E5ECFB
#C4D6F8
#95B8F9
#6094F5
#266df2
#0E59E7
#0C4BC0
#093C9A
#0B2E6F
#071D45
Base = 500Lightest = 50 · #F2F6FDDarkest = 950 · #071D45
:root {
  --brand-50: #F2F6FD;
  --brand-100: #E5ECFB;
  --brand-200: #C4D6F8;
  --brand-300: #95B8F9;
  --brand-400: #6094F5;
  --brand-500: #266df2;
  --brand-600: #0E59E7;
  --brand-700: #0C4BC0;
  --brand-800: #093C9A;
  --brand-900: #0B2E6F;
  --brand-950: #071D45;
  --brand: #266df2;
  --brand-ink: #ffffff;
}

Colors that work with #266df2

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#F4F6FA
Tinted page background
Border#C0CFED
Hairlines and dividers
Muted text#4B679B
Captions on the surface
Accent#C55307
Second voice, not a rival
Dark variant#072F78
Hover, pressed, headers
Light variant#E7EFFE
Selected rows, tints
Dark surface#141924
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 #266df2

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

Works well for
  • Body text and links 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
  • 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#F2AB26
Analogous left#26D3F2
Analogous right#4526F2
Split-complement 1#F24526
Split-complement 2#D3F226
Triadic 1#F2266D
Triadic 2#6DF226
Tetradic#F226D3

RGB percentages

Red14.9%
Green42.7%
Blue94.9%

CMYK percentages

Cyan84.3%
Magenta55.0%
Yellow0.0%
Key (black)5.1%

Color previews

#266df2 text on a black background

contrast 4.55:1

Card sample

#266df2 text on a white background

contrast 4.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #266df2;
Background color
Panel with #266df2 background
background-color: #266df2;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #266df2;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(38, 109, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(38, 109, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #266df2;
background: linear-gradient(135deg, #266df2, #6726F2);

Monochromatic scale

Palettes built from #266df2

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.

#266df2 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.

#266df2, answered

What color is #266df2?

#266df2 is a balanced electric blue, closest to Royal Blue (ΔE2000 2.9). It sits at 219° on the hue wheel with 89% saturation and 55% lightness, which reads as cool.

What is the RGB value of #266df2?

rgb(38, 109, 242) — 38 red, 109 green and 242 blue out of 255, or 14.9% / 42.7% / 94.9% by channel.

Is #266df2 a light or a dark color?

It is a dark color. Relative luminance is 0.1776 and perceived brightness is 47%, so white text on it reaches 4.61:1.

Should I use black or white text on #266df2?

White. It scores 4.61:1 against #266df2, versus 4.55:1 for black — AA at any size.

What is the complementary color of #266df2?

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

What colors go well with #266df2?

For interface work: #F4F6FA as the surface, #C0CFED for borders, #4B679B for secondary text, #C55307 as an accent and #072F78 for hover and pressed states. For a palette, the analogous pair #26D3F2 and #4526F2 stays calm, while #F2AB26 is the loudest partner.

What is #266df2 in CMYK for printing?

cmyk(84%, 55%, 0%, 5%). 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 #266df2 warm or cool?

Cool — it scores 95 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2A26F2; nudged cooler, #0C6AF3.

Work with #266df2 in the Color Lab