Skip to content

#262eb2

a dark, vivid blue · cool · closest name: Medium Blue

RGB
38, 46, 178
HSL
237°, 65%, 42%
CMYK
79, 74, 0, 30
Luminance
0.0558

At a glance

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

Hex
#262eb2
Hue
237°
blue
Saturation
65%
vivid
Lightness
42%
dark
Brightness
70%
HSV value
Perceived
29%
weighted brightness
Luminance
0.0558
WCAG relative
Temperature
Cool
85/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
9.92:1
Closest name
Medium Blue
ΔE2000 6.6
Where it sits
Hue237° of 360°
Saturation65%
Lightness42%
Temperature
Warm ← → Cool85% 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#262eb2
RGBrgb(38, 46, 178)
HSLhsl(237, 65%, 42%)
CMYKcmyk(79%, 74%, 0%, 30%)
LABlab(28.3 43.5 -69.9)
LCHlch(28.3 82.3 301.9)
OKLCHoklch(0.400 0.203 270.4)
Decimal2502322
Display P3color(display-p3 0.149 0.180 0.698)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#262eb2 on white: 9.92:1
AA ✓ pass · AA-large · AAA
Aa
#262eb2 on black: 2.12:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004AB6
deuteranopia · #003CB0
tritanopia · #00546D

Color scale — 50 to 950

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

#F3F4FB
#E8E9F7
#CBCDF1
#A3A7EB
#747BE1
#464ED8
#2B34CA
#262eb2
#1D2386
#191D62
#0F123D
Base = 700Lightest = 50 · #F3F4FBDarkest = 950 · #0F123D
:root {
  --brand-50: #F3F4FB;
  --brand-100: #E8E9F7;
  --brand-200: #CBCDF1;
  --brand-300: #A3A7EB;
  --brand-400: #747BE1;
  --brand-500: #464ED8;
  --brand-600: #2B34CA;
  --brand-700: #262eb2;
  --brand-800: #1D2386;
  --brand-900: #191D62;
  --brand-950: #0F123D;
  --brand: #262eb2;
  --brand-ink: #ffffff;
}

Colors that work with #262eb2

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#F4F5FA
Tinted page background
Border#C0C2ED
Hairlines and dividers
Muted text#4B4F9B
Captions on the surface
Accent#AC8120
Second voice, not a rival
Dark variant#161B69
Hover, pressed, headers
Light variant#EAEBFB
Selected rows, tints
Dark surface#141524
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 #262eb2

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#B2AA26
Analogous left#2674B2
Analogous right#6426B2
Split-complement 1#B26426
Split-complement 2#74B226
Triadic 1#B2262E
Triadic 2#2EB226
Tetradic#B22674

RGB percentages

Red14.9%
Green18.0%
Blue69.8%

CMYK percentages

Cyan78.7%
Magenta74.2%
Yellow0.0%
Key (black)30.2%

Color previews

#262eb2 text on a black background

contrast 2.12:1

Card sample

#262eb2 text on a white background

contrast 9.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(38, 46, 178, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(38, 46, 178, 0.45);
Border & gradient
Gradient panel
border: 3px solid #262eb2;
background: linear-gradient(135deg, #262eb2, #7C26B2);

Monochromatic scale

Palettes built from #262eb2

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.

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

#262eb2, answered

What color is #262eb2?

#262eb2 is a dark vivid blue, closest to Medium Blue (ΔE2000 6.6). It sits at 237° on the hue wheel with 65% saturation and 42% lightness, which reads as cool.

What is the RGB value of #262eb2?

rgb(38, 46, 178) — 38 red, 46 green and 178 blue out of 255, or 14.9% / 18% / 69.8% by channel.

Is #262eb2 a light or a dark color?

It is a dark color. Relative luminance is 0.0558 and perceived brightness is 29%, so white text on it reaches 9.92:1.

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

White. It scores 9.92:1 against #262eb2, versus 2.12:1 for black — AAA at any size.

What is the complementary color of #262eb2?

#B2AA26 sits directly opposite on the wheel. Softer options are the split-complements #B26426 and #74B226, which give the same contrast with far less vibration.

What colors go well with #262eb2?

For interface work: #F4F5FA as the surface, #C0C2ED for borders, #4B4F9B for secondary text, #AC8120 as an accent and #161B69 for hover and pressed states. For a palette, the analogous pair #2674B2 and #6426B2 stays calm, while #B2AA26 is the loudest partner.

What is #262eb2 in CMYK for printing?

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

Is #262eb2 warm or cool?

Cool — it scores 85 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5126B2; nudged cooler, #244FB4.

Work with #262eb2 in the Color Lab