Skip to content

#2b38bc

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

RGB
43, 56, 188
HSL
235°, 63%, 45%
CMYK
77, 70, 0, 26
Luminance
0.0697

At a glance

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

Hex
#2b38bc
Hue
235°
blue
Saturation
63%
vivid
Lightness
45%
balanced
Brightness
74%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0697
WCAG relative
Temperature
Cool
86/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
8.77:1
Closest name
Dark Slate Blue
ΔE2000 8.5
Where it sits
Hue235° of 360°
Saturation63%
Lightness45%
Temperature
Warm ← → Cool86% 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#2b38bc
RGBrgb(43, 56, 188)
HSLhsl(235, 63%, 45%)
CMYKcmyk(77%, 70%, 0%, 26%)
LABlab(31.7 41.4 -70.2)
LCHlch(31.7 81.5 300.5)
OKLCHoklch(0.429 0.203 270.2)
Decimal2832572
Display P3color(display-p3 0.169 0.220 0.737)

Copy-ready code

/* CSS */
color: #2b38bc;
background-color: #2b38bc;
/* Tailwind (arbitrary) */
class="text-[#2b38bc] bg-[#2b38bc]"
/* SCSS */
$brand: #2b38bc;
/* SwiftUI */
Color(red: 0.169, green: 0.220, blue: 0.737)
/* Android */
Color.parseColor("#2b38bc")
/* Flutter */
Color(0xFF2B38BC)
/* Python / OpenCV (BGR) */
(188, 56, 43)

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

Accessibility — WCAG contrast

Aa
#2b38bc on white: 8.77:1
AA ✓ pass · AA-large · AAA
Aa
#2b38bc on black: 2.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0052C0
deuteranopia · #0044BA
tritanopia · #005D76

Color scale — 50 to 950

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

#F4F4FB
#E8EAF7
#CCCFF0
#A4AAEA
#7680E0
#4855D5
#2b38bc
#2631A6
#1E2885
#1A2061
#10143C
Base = 600Lightest = 50 · #F4F4FBDarkest = 950 · #10143C
:root {
  --brand-50: #F4F4FB;
  --brand-100: #E8EAF7;
  --brand-200: #CCCFF0;
  --brand-300: #A4AAEA;
  --brand-400: #7680E0;
  --brand-500: #4855D5;
  --brand-600: #2b38bc;
  --brand-700: #2631A6;
  --brand-800: #1E2885;
  --brand-900: #1A2061;
  --brand-950: #10143C;
  --brand: #2b38bc;
  --brand-ink: #ffffff;
}

Colors that work with #2b38bc

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#C0C4ED
Hairlines and dividers
Muted text#4B529B
Captions on the surface
Accent#AA7C22
Second voice, not a rival
Dark variant#181F68
Hover, pressed, headers
Light variant#EAECFA
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 #2b38bc

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#BCAF2B
Analogous left#2B81BC
Analogous right#662BBC
Split-complement 1#BC662B
Split-complement 2#81BC2B
Triadic 1#BC2B38
Triadic 2#38BC2B
Tetradic#BC2B81

RGB percentages

Red16.9%
Green22.0%
Blue73.7%

CMYK percentages

Cyan77.1%
Magenta70.2%
Yellow0.0%
Key (black)26.3%

Color previews

#2b38bc text on a black background

contrast 2.39:1

Card sample

#2b38bc text on a white background

contrast 8.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2b38bc;
Background color
Panel with #2b38bc background
background-color: #2b38bc;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(43, 56, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(43, 56, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2b38bc;
background: linear-gradient(135deg, #2b38bc, #7F2BBC);

Monochromatic scale

Palettes built from #2b38bc

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.

#2b38bc 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.

#2b38bc, answered

What color is #2b38bc?

#2b38bc is a balanced vivid blue, closest to Dark Slate Blue (ΔE2000 8.5). It sits at 235° on the hue wheel with 63% saturation and 45% lightness, which reads as cool.

What is the RGB value of #2b38bc?

rgb(43, 56, 188) — 43 red, 56 green and 188 blue out of 255, or 16.9% / 22% / 73.7% by channel.

Is #2b38bc a light or a dark color?

It is a dark color. Relative luminance is 0.0697 and perceived brightness is 31%, so white text on it reaches 8.77:1.

Should I use black or white text on #2b38bc?

White. It scores 8.77:1 against #2b38bc, versus 2.39:1 for black — AAA at any size.

What is the complementary color of #2b38bc?

#BCAF2B sits directly opposite on the wheel. Softer options are the split-complements #BC662B and #81BC2B, which give the same contrast with far less vibration.

What colors go well with #2b38bc?

For interface work: #F4F5FA as the surface, #C0C4ED for borders, #4B529B for secondary text, #AA7C22 as an accent and #181F68 for hover and pressed states. For a palette, the analogous pair #2B81BC and #662BBC stays calm, while #BCAF2B is the loudest partner.

What is #2b38bc in CMYK for printing?

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

Is #2b38bc warm or cool?

Cool — it scores 86 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #532BBC; nudged cooler, #2957BE.

Work with #2b38bc in the Color Lab