Skip to content

#2d2c7c

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

RGB
45, 44, 124
HSL
241°, 48%, 33%
CMYK
64, 65, 0, 51
Luminance
0.0381

At a glance

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

Hex
#2d2c7c
Hue
241°
blue
Saturation
48%
vivid
Lightness
33%
dark
Brightness
49%
HSV value
Perceived
23%
weighted brightness
Luminance
0.0381
WCAG relative
Temperature
Cool
83/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
11.91:1
Closest name
Midnight Blue
ΔE2000 5.3
Where it sits
Hue241° of 360°
Saturation48%
Lightness33%
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#2d2c7c
RGBrgb(45, 44, 124)
HSLhsl(241, 48%, 33%)
CMYKcmyk(64%, 65%, 0%, 51%)
LABlab(23.1 26.5 -45.4)
LCHlch(23.1 52.6 300.2)
OKLCHoklch(0.347 0.132 277.6)
Decimal2960508
Display P3color(display-p3 0.176 0.173 0.486)

Copy-ready code

/* CSS */
color: #2d2c7c;
background-color: #2d2c7c;
/* Tailwind (arbitrary) */
class="text-[#2d2c7c] bg-[#2d2c7c]"
/* SCSS */
$brand: #2d2c7c;
/* SwiftUI */
Color(red: 0.176, green: 0.173, blue: 0.486)
/* Android */
Color.parseColor("#2d2c7c")
/* Flutter */
Color(0xFF2D2C7C)
/* Python / OpenCV (BGR) */
(124, 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 #2d2c7c · 11.91:1
Use #ffffffAAA at every size.
Aa
White text · 11.91:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.76:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2d2c7c as text scores 11.91:1 on white and 1.76:1 on black.

Accessibility — WCAG contrast

Aa
#2d2c7c on white: 11.91:1
AA ✓ pass · AA-large · AAA
Aa
#2d2c7c on black: 1.76:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003A7F
deuteranopia · #00347A
tritanopia · #00404F

Color scale — 50 to 950

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

#F5F5FA
#EAEAF5
#D0D0EC
#ADACE2
#8483D3
#5B59C4
#4240B5
#373597
#2d2c7c
#232258
#161537
Base = 800Lightest = 50 · #F5F5FADarkest = 950 · #161537
:root {
  --brand-50: #F5F5FA;
  --brand-100: #EAEAF5;
  --brand-200: #D0D0EC;
  --brand-300: #ADACE2;
  --brand-400: #8483D3;
  --brand-500: #5B59C4;
  --brand-600: #4240B5;
  --brand-700: #373597;
  --brand-800: #2d2c7c;
  --brand-900: #232258;
  --brand-950: #161537;
  --brand: #2d2c7c;
  --brand-ink: #ffffff;
}

Colors that work with #2d2c7c

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#C3C3EA
Hairlines and dividers
Muted text#4C4B9B
Captions on the surface
Accent#7F6B29
Second voice, not a rival
Dark variant#22215E
Hover, pressed, headers
Light variant#ECECF8
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 #2d2c7c

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#7B7C2C
Analogous left#2C537C
Analogous right#552C7C
Split-complement 1#7C552C
Split-complement 2#537C2C
Triadic 1#7C2D2C
Triadic 2#2C7C2D
Tetradic#7C2C53

RGB percentages

Red17.6%
Green17.3%
Blue48.6%

CMYK percentages

Cyan63.7%
Magenta64.5%
Yellow0.0%
Key (black)51.4%

Color previews

#2d2c7c text on a black background

contrast 1.76:1

Card sample

#2d2c7c text on a white background

contrast 11.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d2c7c

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.

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

#2d2c7c, answered

What color is #2d2c7c?

#2d2c7c is a dark vivid blue, closest to Midnight Blue (ΔE2000 5.3). It sits at 241° on the hue wheel with 48% saturation and 33% lightness, which reads as cool.

What is the RGB value of #2d2c7c?

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

Is #2d2c7c a light or a dark color?

It is a dark color. Relative luminance is 0.0381 and perceived brightness is 23%, so white text on it reaches 11.91:1.

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

White. It scores 11.91:1 against #2d2c7c, versus 1.76:1 for black — AAA at any size.

What is the complementary color of #2d2c7c?

#7B7C2C sits directly opposite on the wheel. Softer options are the split-complements #7C552C and #537C2C, which give the same contrast with far less vibration.

What colors go well with #2d2c7c?

For interface work: #F4F4FA as the surface, #C3C3EA for borders, #4C4B9B for secondary text, #7F6B29 as an accent and #22215E for hover and pressed states. For a palette, the analogous pair #2C537C and #552C7C stays calm, while #7B7C2C is the loudest partner.

What is #2d2c7c in CMYK for printing?

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

Is #2d2c7c 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 #4A2C7C; nudged cooler, #2A467E.

Work with #2d2c7c in the Color Lab