Skip to content

#2c2f70

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

RGB
44, 47, 112
HSL
237°, 44%, 31%
CMYK
61, 58, 0, 56
Luminance
0.0374

At a glance

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

Hex
#2c2f70
Hue
237°
blue
Saturation
44%
soft
Lightness
31%
dark
Brightness
44%
HSV value
Perceived
23%
weighted brightness
Luminance
0.0374
WCAG relative
Temperature
Cool
85/100 cool
Color family
Blue
Tone
Soft
Best ink
White
12.02:1
Closest name
Dark Slate Blue
ΔE2000 6.6
Where it sits
Hue237° of 360°
Saturation44%
Lightness31%
Temperature
Warm ← → Cool85% 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#2c2f70
RGBrgb(44, 47, 112)
HSLhsl(237, 44%, 31%)
CMYKcmyk(61%, 58%, 0%, 56%)
LABlab(22.8 19.9 -38.2)
LCHlch(22.8 43.1 297.5)
OKLCHoklch(0.342 0.110 276.9)
Decimal2895728
Display P3color(display-p3 0.173 0.184 0.439)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#2c2f70 on white: 12.02:1
AA ✓ pass · AA-large · AAA
Aa
#2c2f70 on black: 1.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #023972
deuteranopia · #00346F
tritanopia · #023E4A

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2c2f70 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
#EAEBF5
#D1D2EB
#AEB1DF
#8689D0
#5E62C0
#454AB0
#3A3D92
#2c2f70
#252756
#171836
Base = 800Lightest = 50 · #F5F5FADarkest = 950 · #171836
:root {
  --brand-50: #F5F5FA;
  --brand-100: #EAEBF5;
  --brand-200: #D1D2EB;
  --brand-300: #AEB1DF;
  --brand-400: #8689D0;
  --brand-500: #5E62C0;
  --brand-600: #454AB0;
  --brand-700: #3A3D92;
  --brand-800: #2c2f70;
  --brand-900: #252756;
  --brand-950: #171836;
  --brand: #2c2f70;
  --brand-ink: #ffffff;
}

Colors that work with #2c2f70

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#C4C6E8
Hairlines and dividers
Muted text#4B4E9B
Captions on the surface
Accent#735D29
Second voice, not a rival
Dark variant#24265C
Hover, pressed, headers
Light variant#EDEDF8
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 #2c2f70

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#706D2C
Analogous left#2C5170
Analogous right#4B2C70
Split-complement 1#704B2C
Split-complement 2#51702C
Triadic 1#702C2F
Triadic 2#2F702C
Tetradic#702C51

RGB percentages

Red17.3%
Green18.4%
Blue43.9%

CMYK percentages

Cyan60.7%
Magenta58.0%
Yellow0.0%
Key (black)56.1%

Color previews

#2c2f70 text on a black background

contrast 1.75:1

Card sample

#2c2f70 text on a white background

contrast 12.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c2f70

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.

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

#2c2f70, answered

What color is #2c2f70?

#2c2f70 is a dark soft blue, closest to Dark Slate Blue (ΔE2000 6.6). It sits at 237° on the hue wheel with 44% saturation and 31% lightness, which reads as cool.

What is the RGB value of #2c2f70?

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

Is #2c2f70 a light or a dark color?

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

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

White. It scores 12.02:1 against #2c2f70, versus 1.75:1 for black — AAA at any size.

What is the complementary color of #2c2f70?

#706D2C sits directly opposite on the wheel. Softer options are the split-complements #704B2C and #51702C, which give the same contrast with far less vibration.

What colors go well with #2c2f70?

For interface work: #F4F5FA as the surface, #C4C6E8 for borders, #4B4E9B for secondary text, #735D29 as an accent and #24265C for hover and pressed states. For a palette, the analogous pair #2C5170 and #4B2C70 stays calm, while #706D2C is the loudest partner.

What is #2c2f70 in CMYK for printing?

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

Is #2c2f70 warm or cool?

Cool — it scores 85 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #422C70; nudged cooler, #2A4472.

Work with #2c2f70 in the Color Lab