Skip to content

#262afb

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

RGB
38, 42, 251
HSL
239°, 96%, 57%
CMYK
85, 83, 0, 2
Luminance
0.0903

At a glance

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

Hex
#262afb
Hue
239°
blue
Saturation
96%
electric
Lightness
57%
balanced
Brightness
98%
HSV value
Perceived
36%
weighted brightness
Luminance
0.0903
WCAG relative
Temperature
Cool
84/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.48:1
Closest name
Blue
ΔE2000 3.9
Where it sits
Hue239° of 360°
Saturation96%
Lightness57%
Temperature
Warm ← → Cool84% 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#262afb
RGBrgb(38, 42, 251)
HSLhsl(239, 96%, 57%)
CMYKcmyk(85%, 83%, 0%, 2%)
LABlab(36.0 68.2 -99.3)
LCHlch(36.0 120.5 304.5)
OKLCHoklch(0.478 0.288 267.9)
Decimal2501371
Display P3color(display-p3 0.149 0.165 0.984)

Copy-ready code

/* CSS */
color: #262afb;
background-color: #262afb;
/* Tailwind (arbitrary) */
class="text-[#262afb] bg-[#262afb]"
/* SCSS */
$brand: #262afb;
/* SwiftUI */
Color(red: 0.149, green: 0.165, blue: 0.984)
/* Android */
Color.parseColor("#262afb")
/* Flutter */
Color(0xFF262AFB)
/* Python / OpenCV (BGR) */
(251, 42, 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 #262afb · 7.48:1
Use #ffffffAAA at every size.
Aa
White text · 7.48:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.81:1
AA fail · AA large fail · AAA fail
Reading the other direction: #262afb as text scores 7.48:1 on white and 2.81:1 on black.

Accessibility — WCAG contrast

Aa
#262afb on white: 7.48:1
AA ✓ pass · AA-large · AAA
Aa
#262afb on black: 2.81:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0060FF
deuteranopia · #0049F8
tritanopia · #007097

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #262afb 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.

#F1F2FD
#E4E4FC
#C1C2FA
#9193FD
#5A5DFC
#262afb
#0409F0
#0407C8
#0306A0
#070973
#040648
Base = 500Lightest = 50 · #F1F2FDDarkest = 950 · #040648
:root {
  --brand-50: #F1F2FD;
  --brand-100: #E4E4FC;
  --brand-200: #C1C2FA;
  --brand-300: #9193FD;
  --brand-400: #5A5DFC;
  --brand-500: #262afb;
  --brand-600: #0409F0;
  --brand-700: #0407C8;
  --brand-800: #0306A0;
  --brand-900: #070973;
  --brand-950: #040648;
  --brand: #262afb;
  --brand-ink: #ffffff;
}

Colors that work with #262afb

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#F4F4FA
Tinted page background
Border#C0C1ED
Hairlines and dividers
Muted text#4B4C9B
Captions on the surface
Accent#CC9600
Second voice, not a rival
Dark variant#02057D
Hover, pressed, headers
Light variant#E6E6FF
Selected rows, tints
Dark surface#141424
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 #262afb

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
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • 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#FBF726
Analogous left#2694FB
Analogous right#8D26FB
Split-complement 1#FB8D26
Split-complement 2#94FB26
Triadic 1#FB262A
Triadic 2#2AFB26
Tetradic#FB2694

RGB percentages

Red14.9%
Green16.5%
Blue98.4%

CMYK percentages

Cyan84.9%
Magenta83.3%
Yellow0.0%
Key (black)1.6%

Color previews

#262afb text on a black background

contrast 2.81:1

Card sample

#262afb text on a white background

contrast 7.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #262afb;
Background color
Panel with #262afb background
background-color: #262afb;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #262afb;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(38, 42, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(38, 42, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #262afb;
background: linear-gradient(135deg, #262afb, #B026FB);

Monochromatic scale

Palettes built from #262afb

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.

#262afb 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.

#262afb, answered

What color is #262afb?

#262afb is a balanced electric blue, closest to Blue (ΔE2000 3.9). It sits at 239° on the hue wheel with 96% saturation and 57% lightness, which reads as cool.

What is the RGB value of #262afb?

rgb(38, 42, 251) — 38 red, 42 green and 251 blue out of 255, or 14.9% / 16.5% / 98.4% by channel.

Is #262afb a light or a dark color?

It is a dark color. Relative luminance is 0.0903 and perceived brightness is 36%, so white text on it reaches 7.48:1.

Should I use black or white text on #262afb?

White. It scores 7.48:1 against #262afb, versus 2.81:1 for black — AAA at any size.

What is the complementary color of #262afb?

#FBF726 sits directly opposite on the wheel. Softer options are the split-complements #FB8D26 and #94FB26, which give the same contrast with far less vibration.

What colors go well with #262afb?

For interface work: #F4F4FA as the surface, #C0C1ED for borders, #4B4C9B for secondary text, #CC9600 as an accent and #02057D for hover and pressed states. For a palette, the analogous pair #2694FB and #8D26FB stays calm, while #FBF726 is the loudest partner.

What is #262afb in CMYK for printing?

cmyk(85%, 83%, 0%, 2%). 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 #262afb warm or cool?

Cool — it scores 84 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7026FB; nudged cooler, #2457FD.

Work with #262afb in the Color Lab