Skip to content

#2c2f86

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

RGB
44, 47, 134
HSL
238°, 51%, 35%
CMYK
67, 65, 0, 48
Luminance
0.0429

At a glance

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

Hex
#2c2f86
Hue
238°
blue
Saturation
51%
vivid
Lightness
35%
dark
Brightness
53%
HSV value
Perceived
25%
weighted brightness
Luminance
0.0429
WCAG relative
Temperature
Cool
84/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
11.30:1
Closest name
Dark Slate Blue
ΔE2000 5.5
Where it sits
Hue238° of 360°
Saturation51%
Lightness35%
Temperature
Warm ← → Cool84% 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#2c2f86
RGBrgb(44, 47, 134)
HSLhsl(238, 51%, 35%)
CMYKcmyk(67%, 65%, 0%, 48%)
LABlab(24.6 27.9 -49.2)
LCHlch(24.6 56.6 299.6)
OKLCHoklch(0.361 0.142 275.2)
Decimal2895750
Display P3color(display-p3 0.173 0.184 0.525)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c2f86 on white: 11.30:1
AA ✓ pass · AA-large · AAA
Aa
#2c2f86 on black: 1.86:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003E89
deuteranopia · #003684
tritanopia · #004556

Color scale — 50 to 950

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

#F4F5FA
#EAEAF6
#CFD0ED
#ABACE3
#8083D5
#565AC8
#3C41B8
#32369A
#2c2f86
#21235A
#141638
Base = 800Lightest = 50 · #F4F5FADarkest = 950 · #141638
:root {
  --brand-50: #F4F5FA;
  --brand-100: #EAEAF6;
  --brand-200: #CFD0ED;
  --brand-300: #ABACE3;
  --brand-400: #8083D5;
  --brand-500: #565AC8;
  --brand-600: #3C41B8;
  --brand-700: #32369A;
  --brand-800: #2c2f86;
  --brand-900: #21235A;
  --brand-950: #141638;
  --brand: #2c2f86;
  --brand-ink: #ffffff;
}

Colors that work with #2c2f86

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#C2C3EB
Hairlines and dividers
Muted text#4B4D9B
Captions on the surface
Accent#8A6E28
Second voice, not a rival
Dark variant#1F2260
Hover, pressed, headers
Light variant#ECECF9
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 #2c2f86

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#86832C
Analogous left#2C5C86
Analogous right#562C86
Split-complement 1#86562C
Split-complement 2#5C862C
Triadic 1#862C2F
Triadic 2#2F862C
Tetradic#862C5C

RGB percentages

Red17.3%
Green18.4%
Blue52.5%

CMYK percentages

Cyan67.2%
Magenta64.9%
Yellow0.0%
Key (black)47.5%

Color previews

#2c2f86 text on a black background

contrast 1.86:1

Card sample

#2c2f86 text on a white background

contrast 11.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c2f86

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.

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

#2c2f86, answered

What color is #2c2f86?

#2c2f86 is a dark vivid blue, closest to Dark Slate Blue (ΔE2000 5.5). It sits at 238° on the hue wheel with 51% saturation and 35% lightness, which reads as cool.

What is the RGB value of #2c2f86?

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

Is #2c2f86 a light or a dark color?

It is a dark color. Relative luminance is 0.0429 and perceived brightness is 25%, so white text on it reaches 11.30:1.

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

White. It scores 11.30:1 against #2c2f86, versus 1.86:1 for black — AAA at any size.

What is the complementary color of #2c2f86?

#86832C sits directly opposite on the wheel. Softer options are the split-complements #86562C and #5C862C, which give the same contrast with far less vibration.

What colors go well with #2c2f86?

For interface work: #F4F4FA as the surface, #C2C3EB for borders, #4B4D9B for secondary text, #8A6E28 as an accent and #1F2260 for hover and pressed states. For a palette, the analogous pair #2C5C86 and #562C86 stays calm, while #86832C is the loudest partner.

What is #2c2f86 in CMYK for printing?

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

Is #2c2f86 warm or cool?

Cool — it scores 84 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #4A2C86; nudged cooler, #2A4988.

Work with #2c2f86 in the Color Lab