Skip to content

#2f2c5d

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

RGB
47, 44, 93
HSL
244°, 36%, 27%
CMYK
50, 53, 0, 64
Luminance
0.0320

At a glance

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

Hex
#2f2c5d
Hue
244°
blue
Saturation
36%
soft
Lightness
27%
dark
Brightness
36%
HSV value
Perceived
21%
weighted brightness
Luminance
0.0320
WCAG relative
Temperature
Cool
81/100 cool
Color family
Blue
Tone
Soft
Best ink
White
12.81:1
Closest name
Midnight Blue
ΔE2000 8.6
Where it sits
Hue244° of 360°
Saturation36%
Lightness27%
Temperature
Warm ← → Cool81% 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#2f2c5d
RGBrgb(47, 44, 93)
HSLhsl(244, 36%, 27%)
CMYKcmyk(50%, 53%, 0%, 64%)
LABlab(20.8 15.9 -29.0)
LCHlch(20.8 33.1 298.8)
OKLCHoklch(0.324 0.085 283.4)
Decimal3091549
Display P3color(display-p3 0.184 0.173 0.365)

Copy-ready code

/* CSS */
color: #2f2c5d;
background-color: #2f2c5d;
/* Tailwind (arbitrary) */
class="text-[#2f2c5d] bg-[#2f2c5d]"
/* SCSS */
$brand: #2f2c5d;
/* SwiftUI */
Color(red: 0.184, green: 0.173, blue: 0.365)
/* Android */
Color.parseColor("#2f2c5d")
/* Flutter */
Color(0xFF2F2C5D)
/* Python / OpenCV (BGR) */
(93, 44, 47)

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

Accessibility — WCAG contrast

Aa
#2f2c5d on white: 12.81:1
AA ✓ pass · AA-large · AAA
Aa
#2f2c5d on black: 1.64:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #17345F
deuteranopia · #14305C
tritanopia · #203640

Color scale — 50 to 950

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

#F5F5F9
#ECEBF4
#D5D3E8
#B5B3DB
#908DC9
#6C67B7
#544FA6
#46418B
#38346F
#2f2c5d
#1B1A33
Base = 900Lightest = 50 · #F5F5F9Darkest = 950 · #1B1A33
:root {
  --brand-50: #F5F5F9;
  --brand-100: #ECEBF4;
  --brand-200: #D5D3E8;
  --brand-300: #B5B3DB;
  --brand-400: #908DC9;
  --brand-500: #6C67B7;
  --brand-600: #544FA6;
  --brand-700: #46418B;
  --brand-800: #38346F;
  --brand-900: #2f2c5d;
  --brand-950: #1B1A33;
  --brand: #2f2c5d;
  --brand-ink: #ffffff;
}

Colors that work with #2f2c5d

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#F5F5FA
Tinted page background
Border#C9C8E5
Hairlines and dividers
Muted text#504B9B
Captions on the surface
Accent#605629
Second voice, not a rival
Dark variant#2C2957
Hover, pressed, headers
Light variant#EEEEF7
Selected rows, tints
Dark surface#151424
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 #2f2c5d

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • 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#5A5D2C
Analogous left#2C425D
Analogous right#482C5D
Split-complement 1#5D482C
Split-complement 2#425D2C
Triadic 1#5D2F2C
Triadic 2#2C5D2F
Tetradic#5D2C42

RGB percentages

Red18.4%
Green17.3%
Blue36.5%

CMYK percentages

Cyan49.5%
Magenta52.7%
Yellow0.0%
Key (black)63.5%

Color previews

#2f2c5d text on a black background

contrast 1.64:1

Card sample

#2f2c5d text on a white background

contrast 12.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 44, 93, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 44, 93, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f2c5d;
background: linear-gradient(135deg, #2f2c5d, #502C5D);

Monochromatic scale

Palettes built from #2f2c5d

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.

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

#2f2c5d, answered

What color is #2f2c5d?

#2f2c5d is a dark soft blue, closest to Midnight Blue (ΔE2000 8.6). It sits at 244° on the hue wheel with 36% saturation and 27% lightness, which reads as cool.

What is the RGB value of #2f2c5d?

rgb(47, 44, 93) — 47 red, 44 green and 93 blue out of 255, or 18.4% / 17.3% / 36.5% by channel.

Is #2f2c5d a light or a dark color?

It is a dark color. Relative luminance is 0.0320 and perceived brightness is 21%, so white text on it reaches 12.81:1.

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

White. It scores 12.81:1 against #2f2c5d, versus 1.64:1 for black — AAA at any size.

What is the complementary color of #2f2c5d?

#5A5D2C sits directly opposite on the wheel. Softer options are the split-complements #5D482C and #425D2C, which give the same contrast with far less vibration.

What colors go well with #2f2c5d?

For interface work: #F5F5FA as the surface, #C9C8E5 for borders, #504B9B for secondary text, #605629 as an accent and #2C2957 for hover and pressed states. For a palette, the analogous pair #2C425D and #482C5D stays calm, while #5A5D2C is the loudest partner.

What is #2f2c5d in CMYK for printing?

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

Is #2f2c5d warm or cool?

Cool — it scores 81 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #412C5D; nudged cooler, #2B3A5F.

Work with #2f2c5d in the Color Lab