Skip to content

#242572

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

RGB
36, 37, 114
HSL
239°, 52%, 29%
CMYK
68, 68, 0, 55
Luminance
0.0291

At a glance

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

Hex
#242572
Hue
239°
blue
Saturation
52%
vivid
Lightness
29%
dark
Brightness
45%
HSV value
Perceived
20%
weighted brightness
Luminance
0.0291
WCAG relative
Temperature
Cool
84/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
13.27:1
Closest name
Midnight Blue
ΔE2000 3.4
Where it sits
Hue239° of 360°
Saturation52%
Lightness29%
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#242572
RGBrgb(36, 37, 114)
HSLhsl(239, 52%, 29%)
CMYKcmyk(68%, 68%, 0%, 55%)
LABlab(19.7 26.0 -44.5)
LCHlch(19.7 51.6 300.3)
OKLCHoklch(0.318 0.129 275.6)
Decimal2368882
Display P3color(display-p3 0.141 0.145 0.447)

Copy-ready code

/* CSS */
color: #242572;
background-color: #242572;
/* Tailwind (arbitrary) */
class="text-[#242572] bg-[#242572]"
/* SCSS */
$brand: #242572;
/* SwiftUI */
Color(red: 0.141, green: 0.145, blue: 0.447)
/* Android */
Color.parseColor("#242572")
/* Flutter */
Color(0xFF242572)
/* Python / OpenCV (BGR) */
(114, 37, 36)

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

Accessibility — WCAG contrast

Aa
#242572 on white: 13.27:1
AA ✓ pass · AA-large · AAA
Aa
#242572 on black: 1.58:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003374
deuteranopia · #002C71
tritanopia · #003948

Color scale — 50 to 950

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

#F4F4FA
#E9EAF6
#CFCFED
#AAABE4
#7F80D7
#5456C9
#3B3CBA
#31329B
#242572
#20215A
#141439
Base = 800Lightest = 50 · #F4F4FADarkest = 950 · #141439
:root {
  --brand-50: #F4F4FA;
  --brand-100: #E9EAF6;
  --brand-200: #CFCFED;
  --brand-300: #AAABE4;
  --brand-400: #7F80D7;
  --brand-500: #5456C9;
  --brand-600: #3B3CBA;
  --brand-700: #31329B;
  --brand-800: #242572;
  --brand-900: #20215A;
  --brand-950: #141439;
  --brand: #242572;
  --brand-ink: #ffffff;
}

Colors that work with #242572

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#C1C2EB
Hairlines and dividers
Muted text#4B4C9B
Captions on the surface
Accent#755F21
Second voice, not a rival
Dark variant#1F1F61
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 #242572

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#727124
Analogous left#244C72
Analogous right#4A2472
Split-complement 1#724A24
Split-complement 2#4C7224
Triadic 1#722425
Triadic 2#257224
Tetradic#72244C

RGB percentages

Red14.1%
Green14.5%
Blue44.7%

CMYK percentages

Cyan68.4%
Magenta67.5%
Yellow0.0%
Key (black)55.3%

Color previews

#242572 text on a black background

contrast 1.58:1

Card sample

#242572 text on a white background

contrast 13.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(36, 37, 114, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(36, 37, 114, 0.45);
Border & gradient
Gradient panel
border: 3px solid #242572;
background: linear-gradient(135deg, #242572, #572472);

Monochromatic scale

Palettes built from #242572

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.

#242572 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.

#242572, answered

What color is #242572?

#242572 is a dark vivid blue, closest to Midnight Blue (ΔE2000 3.4). It sits at 239° on the hue wheel with 52% saturation and 29% lightness, which reads as cool.

What is the RGB value of #242572?

rgb(36, 37, 114) — 36 red, 37 green and 114 blue out of 255, or 14.1% / 14.5% / 44.7% by channel.

Is #242572 a light or a dark color?

It is a dark color. Relative luminance is 0.0291 and perceived brightness is 20%, so white text on it reaches 13.27:1.

Should I use black or white text on #242572?

White. It scores 13.27:1 against #242572, versus 1.58:1 for black — AAA at any size.

What is the complementary color of #242572?

#727124 sits directly opposite on the wheel. Softer options are the split-complements #724A24 and #4C7224, which give the same contrast with far less vibration.

What colors go well with #242572?

For interface work: #F4F4FA as the surface, #C1C2EB for borders, #4B4C9B for secondary text, #755F21 as an accent and #1F1F61 for hover and pressed states. For a palette, the analogous pair #244C72 and #4A2472 stays calm, while #727124 is the loudest partner.

What is #242572 in CMYK for printing?

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

Is #242572 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 #402472; nudged cooler, #223E73.

Work with #242572 in the Color Lab