Skip to content

#282ba2

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

RGB
40, 43, 162
HSL
239°, 60%, 40%
CMYK
75, 74, 0, 37
Luminance
0.0479

At a glance

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

Hex
#282ba2
Hue
239°
blue
Saturation
60%
vivid
Lightness
40%
dark
Brightness
64%
HSV value
Perceived
26%
weighted brightness
Luminance
0.0479
WCAG relative
Temperature
Cool
84/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
10.73:1
Closest name
Medium Blue
ΔE2000 7.3
Where it sits
Hue239° of 360°
Saturation60%
Lightness40%
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#282ba2
RGBrgb(40, 43, 162)
HSLhsl(239, 60%, 40%)
CMYKcmyk(75%, 74%, 0%, 37%)
LABlab(26.1 39.9 -64.0)
LCHlch(26.1 75.4 302.0)
OKLCHoklch(0.380 0.185 272.2)
Decimal2632610
Display P3color(display-p3 0.157 0.169 0.635)

Copy-ready code

/* CSS */
color: #282ba2;
background-color: #282ba2;
/* Tailwind (arbitrary) */
class="text-[#282ba2] bg-[#282ba2]"
/* SCSS */
$brand: #282ba2;
/* SwiftUI */
Color(red: 0.157, green: 0.169, blue: 0.635)
/* Android */
Color.parseColor("#282ba2")
/* Flutter */
Color(0xFF282BA2)
/* Python / OpenCV (BGR) */
(162, 43, 40)

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 #282ba2 · 10.73:1
Use #ffffffAAA at every size.
Aa
White text · 10.73:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.96:1
AA fail · AA large fail · AAA fail
Reading the other direction: #282ba2 as text scores 10.73:1 on white and 1.96:1 on black.

Accessibility — WCAG contrast

Aa
#282ba2 on white: 10.73:1
AA ✓ pass · AA-large · AAA
Aa
#282ba2 on black: 1.96:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0044A6
deuteranopia · #0038A0
tritanopia · #004D64

Color scale — 50 to 950

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

#F4F4FB
#E8E9F7
#CCCDEF
#A5A7E9
#787BDE
#4B4ED3
#3034C4
#282ba2
#202383
#1B1D5F
#11123C
Base = 700Lightest = 50 · #F4F4FBDarkest = 950 · #11123C
:root {
  --brand-50: #F4F4FB;
  --brand-100: #E8E9F7;
  --brand-200: #CCCDEF;
  --brand-300: #A5A7E9;
  --brand-400: #787BDE;
  --brand-500: #4B4ED3;
  --brand-600: #3034C4;
  --brand-700: #282ba2;
  --brand-800: #202383;
  --brand-900: #1B1D5F;
  --brand-950: #11123C;
  --brand: #282ba2;
  --brand-ink: #ffffff;
}

Colors that work with #282ba2

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#4B4D9B
Captions on the surface
Accent#A68224
Second voice, not a rival
Dark variant#191B66
Hover, pressed, headers
Light variant#EBEBFA
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 #282ba2

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#A29F28
Analogous left#2868A2
Analogous right#6228A2
Split-complement 1#A26228
Split-complement 2#68A228
Triadic 1#A2282B
Triadic 2#2BA228
Tetradic#A22868

RGB percentages

Red15.7%
Green16.9%
Blue63.5%

CMYK percentages

Cyan75.3%
Magenta73.5%
Yellow0.0%
Key (black)36.5%

Color previews

#282ba2 text on a black background

contrast 1.96:1

Card sample

#282ba2 text on a white background

contrast 10.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #282ba2;
Background color
Panel with #282ba2 background
background-color: #282ba2;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #282ba2;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(40, 43, 162, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(40, 43, 162, 0.45);
Border & gradient
Gradient panel
border: 3px solid #282ba2;
background: linear-gradient(135deg, #282ba2, #7628A2);

Monochromatic scale

Palettes built from #282ba2

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.

#282ba2 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.

#282ba2, answered

What color is #282ba2?

#282ba2 is a dark vivid blue, closest to Medium Blue (ΔE2000 7.3). It sits at 239° on the hue wheel with 60% saturation and 40% lightness, which reads as cool.

What is the RGB value of #282ba2?

rgb(40, 43, 162) — 40 red, 43 green and 162 blue out of 255, or 15.7% / 16.9% / 63.5% by channel.

Is #282ba2 a light or a dark color?

It is a dark color. Relative luminance is 0.0479 and perceived brightness is 26%, so white text on it reaches 10.73:1.

Should I use black or white text on #282ba2?

White. It scores 10.73:1 against #282ba2, versus 1.96:1 for black — AAA at any size.

What is the complementary color of #282ba2?

#A29F28 sits directly opposite on the wheel. Softer options are the split-complements #A26228 and #68A228, which give the same contrast with far less vibration.

What colors go well with #282ba2?

For interface work: #F4F4FA as the surface, #C0C1ED for borders, #4B4D9B for secondary text, #A68224 as an accent and #191B66 for hover and pressed states. For a palette, the analogous pair #2868A2 and #6228A2 stays calm, while #A29F28 is the loudest partner.

What is #282ba2 in CMYK for printing?

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

Is #282ba2 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 #5228A2; nudged cooler, #264CA4.

Work with #282ba2 in the Color Lab