Skip to content

#283fba

a dark, vivid blue · cool · closest name: Dark Slate Blue

RGB
40, 63, 186
HSL
231°, 65%, 44%
CMYK
79, 66, 0, 27
Luminance
0.0755

At a glance

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

Hex
#283fba
Hue
231°
blue
Saturation
65%
vivid
Lightness
44%
dark
Brightness
73%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0755
WCAG relative
Temperature
Cool
89/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
8.37:1
Closest name
Dark Slate Blue
ΔE2000 8.4
Where it sits
Hue231° of 360°
Saturation65%
Lightness44%
Temperature
Warm ← → Cool89% 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#283fba
RGBrgb(40, 63, 186)
HSLhsl(231, 65%, 44%)
CMYKcmyk(79%, 66%, 0%, 27%)
LABlab(33.0 36.1 -66.9)
LCHlch(33.0 76.0 298.3)
OKLCHoklch(0.437 0.194 268.4)
Decimal2637754
Display P3color(display-p3 0.157 0.247 0.729)

Copy-ready code

/* CSS */
color: #283fba;
background-color: #283fba;
/* Tailwind (arbitrary) */
class="text-[#283fba] bg-[#283fba]"
/* SCSS */
$brand: #283fba;
/* SwiftUI */
Color(red: 0.157, green: 0.247, blue: 0.729)
/* Android */
Color.parseColor("#283fba")
/* Flutter */
Color(0xFF283FBA)
/* Python / OpenCV (BGR) */
(186, 63, 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 #283fba · 8.37:1
Use #ffffffAAA at every size.
Aa
White text · 8.37:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.51:1
AA fail · AA large fail · AAA fail
Reading the other direction: #283fba as text scores 8.37:1 on white and 2.51:1 on black.

Accessibility — WCAG contrast

Aa
#283fba on white: 8.37:1
AA ✓ pass · AA-large · AAA
Aa
#283fba on black: 2.51:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0055BE
deuteranopia · #0047B8
tritanopia · #006077

Color scale — 50 to 950

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

#F3F5FB
#E8EAF7
#CBD1F1
#A3AEEB
#7486E1
#465DD7
#283fba
#2439A8
#1D2E86
#192462
#10173D
Base = 600Lightest = 50 · #F3F5FBDarkest = 950 · #10173D
:root {
  --brand-50: #F3F5FB;
  --brand-100: #E8EAF7;
  --brand-200: #CBD1F1;
  --brand-300: #A3AEEB;
  --brand-400: #7486E1;
  --brand-500: #465DD7;
  --brand-600: #283fba;
  --brand-700: #2439A8;
  --brand-800: #1D2E86;
  --brand-900: #192462;
  --brand-950: #10173D;
  --brand: #283fba;
  --brand-ink: #ffffff;
}

Colors that work with #283fba

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#C0C7ED
Hairlines and dividers
Muted text#4B579B
Captions on the surface
Accent#BE7F23
Second voice, not a rival
Dark variant#172469
Hover, pressed, headers
Light variant#EAEDFA
Selected rows, tints
Dark surface#141624
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 #283fba

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#BAA328
Analogous left#2888BA
Analogous right#5A28BA
Split-complement 1#BA5A28
Split-complement 2#88BA28
Triadic 1#BA283F
Triadic 2#3FBA28
Tetradic#BA2888

RGB percentages

Red15.7%
Green24.7%
Blue72.9%

CMYK percentages

Cyan78.5%
Magenta66.1%
Yellow0.0%
Key (black)27.1%

Color previews

#283fba text on a black background

contrast 2.51:1

Card sample

#283fba text on a white background

contrast 8.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #283fba;
Background color
Panel with #283fba background
background-color: #283fba;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #283fba;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(40, 63, 186, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(40, 63, 186, 0.45);
Border & gradient
Gradient panel
border: 3px solid #283fba;
background: linear-gradient(135deg, #283fba, #7228BA);

Monochromatic scale

Palettes built from #283fba

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.

#283fba 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.

#283fba, answered

What color is #283fba?

#283fba is a dark vivid blue, closest to Dark Slate Blue (ΔE2000 8.4). It sits at 231° on the hue wheel with 65% saturation and 44% lightness, which reads as cool.

What is the RGB value of #283fba?

rgb(40, 63, 186) — 40 red, 63 green and 186 blue out of 255, or 15.7% / 24.7% / 72.9% by channel.

Is #283fba a light or a dark color?

It is a dark color. Relative luminance is 0.0755 and perceived brightness is 32%, so white text on it reaches 8.37:1.

Should I use black or white text on #283fba?

White. It scores 8.37:1 against #283fba, versus 2.51:1 for black — AAA at any size.

What is the complementary color of #283fba?

#BAA328 sits directly opposite on the wheel. Softer options are the split-complements #BA5A28 and #88BA28, which give the same contrast with far less vibration.

What colors go well with #283fba?

For interface work: #F4F5FA as the surface, #C0C7ED for borders, #4B579B for secondary text, #BE7F23 as an accent and #172469 for hover and pressed states. For a palette, the analogous pair #2888BA and #5A28BA stays calm, while #BAA328 is the loudest partner.

What is #283fba in CMYK for printing?

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

Is #283fba warm or cool?

Cool — it scores 89 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #4628BA; nudged cooler, #2658BC.

Work with #283fba in the Color Lab