Skip to content

#2d2cc8

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

RGB
45, 44, 200
HSL
240°, 64%, 48%
CMYK
78, 78, 0, 22
Luminance
0.0653

At a glance

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

Hex
#2d2cc8
Hue
240°
blue
Saturation
64%
vivid
Lightness
48%
balanced
Brightness
78%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0653
WCAG relative
Temperature
Cool
83/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
9.11:1
Closest name
Medium Blue
ΔE2000 5.7
Where it sits
Hue240° of 360°
Saturation64%
Lightness48%
Temperature
Warm ← → Cool83% 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#2d2cc8
RGBrgb(45, 44, 200)
HSLhsl(240, 64%, 48%)
CMYKcmyk(78%, 78%, 0%, 22%)
LABlab(30.7 52.3 -79.0)
LCHlch(30.7 94.7 303.5)
OKLCHoklch(0.425 0.229 271.4)
Decimal2960584
Display P3color(display-p3 0.176 0.173 0.784)

Copy-ready code

/* CSS */
color: #2d2cc8;
background-color: #2d2cc8;
/* Tailwind (arbitrary) */
class="text-[#2d2cc8] bg-[#2d2cc8]"
/* SCSS */
$brand: #2d2cc8;
/* SwiftUI */
Color(red: 0.176, green: 0.173, blue: 0.784)
/* Android */
Color.parseColor("#2d2cc8")
/* Flutter */
Color(0xFF2D2CC8)
/* Python / OpenCV (BGR) */
(200, 44, 45)

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

Accessibility — WCAG contrast

Aa
#2d2cc8 on white: 9.11:1
AA ✓ pass · AA-large · AAA
Aa
#2d2cc8 on black: 2.31:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0050CC
deuteranopia · #0040C5
tritanopia · #005C7A

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2d2cc8 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
#E8E8F7
#CBCBF0
#A4A3EB
#7675E1
#4847D6
#2d2cc8
#2625A7
#1E1D86
#1A1961
#10103D
Base = 600Lightest = 50 · #F4F4FBDarkest = 950 · #10103D
:root {
  --brand-50: #F4F4FB;
  --brand-100: #E8E8F7;
  --brand-200: #CBCBF0;
  --brand-300: #A4A3EB;
  --brand-400: #7675E1;
  --brand-500: #4847D6;
  --brand-600: #2d2cc8;
  --brand-700: #2625A7;
  --brand-800: #1E1D86;
  --brand-900: #1A1961;
  --brand-950: #10103D;
  --brand: #2d2cc8;
  --brand-ink: #ffffff;
}

Colors that work with #2d2cc8

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#C0C0ED
Hairlines and dividers
Muted text#4B4B9B
Captions on the surface
Accent#AB8921
Second voice, not a rival
Dark variant#181768
Hover, pressed, headers
Light variant#EAEAFA
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 #2d2cc8

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#C7C82C
Analogous left#2C79C8
Analogous right#7B2CC8
Split-complement 1#C87B2C
Split-complement 2#79C82C
Triadic 1#C82D2C
Triadic 2#2CC82D
Tetradic#C82C79

RGB percentages

Red17.6%
Green17.3%
Blue78.4%

CMYK percentages

Cyan77.5%
Magenta78.0%
Yellow0.0%
Key (black)21.6%

Color previews

#2d2cc8 text on a black background

contrast 2.31:1

Card sample

#2d2cc8 text on a white background

contrast 9.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 44, 200, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 44, 200, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d2cc8;
background: linear-gradient(135deg, #2d2cc8, #952CC8);

Monochromatic scale

Palettes built from #2d2cc8

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.

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

#2d2cc8, answered

What color is #2d2cc8?

#2d2cc8 is a balanced vivid blue, closest to Medium Blue (ΔE2000 5.7). It sits at 240° on the hue wheel with 64% saturation and 48% lightness, which reads as cool.

What is the RGB value of #2d2cc8?

rgb(45, 44, 200) — 45 red, 44 green and 200 blue out of 255, or 17.6% / 17.3% / 78.4% by channel.

Is #2d2cc8 a light or a dark color?

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

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

White. It scores 9.11:1 against #2d2cc8, versus 2.31:1 for black — AAA at any size.

What is the complementary color of #2d2cc8?

#C7C82C sits directly opposite on the wheel. Softer options are the split-complements #C87B2C and #79C82C, which give the same contrast with far less vibration.

What colors go well with #2d2cc8?

For interface work: #F4F4FA as the surface, #C0C0ED for borders, #4B4B9B for secondary text, #AB8921 as an accent and #181768 for hover and pressed states. For a palette, the analogous pair #2C79C8 and #7B2CC8 stays calm, while #C7C82C is the loudest partner.

What is #2d2cc8 in CMYK for printing?

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

Is #2d2cc8 warm or cool?

Cool — it scores 83 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #662CC8; nudged cooler, #2A53CA.

Work with #2d2cc8 in the Color Lab