Skip to content

#2c2def

a balanced, electric blue · cool · closest name: Blue

RGB
44, 45, 239
HSL
240°, 86%, 56%
CMYK
82, 81, 0, 6
Luminance
0.0864

At a glance

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

Hex
#2c2def
Hue
240°
blue
Saturation
86%
electric
Lightness
56%
balanced
Brightness
94%
HSV value
Perceived
36%
weighted brightness
Luminance
0.0864
WCAG relative
Temperature
Cool
83/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.70:1
Closest name
Blue
ΔE2000 4.1
Where it sits
Hue240° of 360°
Saturation86%
Lightness56%
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#2c2def
RGBrgb(44, 45, 239)
HSLhsl(240, 86%, 56%)
CMYKcmyk(82%, 81%, 0%, 6%)
LABlab(35.3 63.7 -93.8)
LCHlch(35.3 113.4 304.2)
OKLCHoklch(0.470 0.272 269.3)
Decimal2895343
Display P3color(display-p3 0.173 0.176 0.937)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c2def on white: 7.70:1
AA ✓ pass · AA-large · AAA
Aa
#2c2def on black: 2.73:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005DF4
deuteranopia · #0048EC
tritanopia · #006C90

Color scale — 50 to 950

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

#F2F2FD
#E5E5FA
#C5C5F7
#9797F7
#6363F3
#2c2def
#1112E4
#0E0FBE
#0C0C98
#0D0D6E
#080844
Base = 500Lightest = 50 · #F2F2FDDarkest = 950 · #080844
:root {
  --brand-50: #F2F2FD;
  --brand-100: #E5E5FA;
  --brand-200: #C5C5F7;
  --brand-300: #9797F7;
  --brand-400: #6363F3;
  --brand-500: #2c2def;
  --brand-600: #1112E4;
  --brand-700: #0E0FBE;
  --brand-800: #0C0C98;
  --brand-900: #0D0D6E;
  --brand-950: #080844;
  --brand: #2c2def;
  --brand-ink: #ffffff;
}

Colors that work with #2c2def

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#C2930A
Second voice, not a rival
Dark variant#090A77
Hover, pressed, headers
Light variant#E7E7FD
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 #2c2def

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#EFEE2C
Analogous left#2C8EEF
Analogous right#8D2CEF
Split-complement 1#EF8D2C
Split-complement 2#8EEF2C
Triadic 1#EF2C2D
Triadic 2#2DEF2C
Tetradic#EF2C8E

RGB percentages

Red17.3%
Green17.6%
Blue93.7%

CMYK percentages

Cyan81.6%
Magenta81.2%
Yellow0.0%
Key (black)6.3%

Color previews

#2c2def text on a black background

contrast 2.73:1

Card sample

#2c2def text on a white background

contrast 7.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c2def

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.

#2c2def 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#2c2def, answered

What color is #2c2def?

#2c2def is a balanced electric blue, closest to Blue (ΔE2000 4.1). It sits at 240° on the hue wheel with 86% saturation and 56% lightness, which reads as cool.

What is the RGB value of #2c2def?

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

Is #2c2def a light or a dark color?

It is a dark color. Relative luminance is 0.0864 and perceived brightness is 36%, so white text on it reaches 7.70:1.

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

White. It scores 7.70:1 against #2c2def, versus 2.73:1 for black — AAA at any size.

What is the complementary color of #2c2def?

#EFEE2C sits directly opposite on the wheel. Softer options are the split-complements #EF8D2C and #8EEF2C, which give the same contrast with far less vibration.

What colors go well with #2c2def?

For interface work: #F4F4FA as the surface, #C0C0ED for borders, #4B4B9B for secondary text, #C2930A as an accent and #090A77 for hover and pressed states. For a palette, the analogous pair #2C8EEF and #8D2CEF stays calm, while #EFEE2C is the loudest partner.

What is #2c2def in CMYK for printing?

cmyk(82%, 81%, 0%, 6%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #2c2def 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 #732CEF; nudged cooler, #2A59F1.

Work with #2c2def in the Color Lab