Skip to content

#242557

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

RGB
36, 37, 87
HSL
239°, 42%, 24%
CMYK
59, 58, 0, 66
Luminance
0.0239

At a glance

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

Hex
#242557
Hue
239°
blue
Saturation
42%
soft
Lightness
24%
deep
Brightness
34%
HSV value
Perceived
18%
weighted brightness
Luminance
0.0239
WCAG relative
Temperature
Cool
84/100 cool
Color family
Blue
Tone
Soft
Best ink
White
14.22:1
Closest name
Midnight Blue
ΔE2000 7.4
Where it sits
Hue239° of 360°
Saturation42%
Lightness24%
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#242557
RGBrgb(36, 37, 87)
HSLhsl(239, 42%, 24%)
CMYKcmyk(59%, 58%, 0%, 66%)
LABlab(17.4 16.0 -30.5)
LCHlch(17.4 34.5 297.6)
OKLCHoklch(0.294 0.088 278.6)
Decimal2368855
Display P3color(display-p3 0.141 0.145 0.341)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#242557 on white: 14.22:1
AA ✓ pass · AA-large · AAA
Aa
#242557 on black: 1.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #092D59
deuteranopia · #022956
tritanopia · #0C303A

Color scale — 50 to 950

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

#F5F5FA
#EBEBF5
#D2D2EA
#B0B1DE
#8889CE
#6062BD
#484AAD
#3C3D90
#303173
#242557
#181835
Base = 900Lightest = 50 · #F5F5FADarkest = 950 · #181835
:root {
  --brand-50: #F5F5FA;
  --brand-100: #EBEBF5;
  --brand-200: #D2D2EA;
  --brand-300: #B0B1DE;
  --brand-400: #8889CE;
  --brand-500: #6062BD;
  --brand-600: #484AAD;
  --brand-700: #3C3D90;
  --brand-800: #303173;
  --brand-900: #242557;
  --brand-950: #181835;
  --brand: #242557;
  --brand-ink: #ffffff;
}

Colors that work with #242557

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#C5C6E7
Hairlines and dividers
Muted text#4B4C9B
Captions on the surface
Accent#594A21
Second voice, not a rival
Dark variant#25265A
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 #242557

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#575624
Analogous left#243E57
Analogous right#3C2457
Split-complement 1#573C24
Split-complement 2#3E5724
Triadic 1#572425
Triadic 2#255724
Tetradic#57243E

RGB percentages

Red14.1%
Green14.5%
Blue34.1%

CMYK percentages

Cyan58.6%
Magenta57.5%
Yellow0.0%
Key (black)65.9%

Color previews

#242557 text on a black background

contrast 1.48:1

Card sample

#242557 text on a white background

contrast 14.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #242557

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.

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

#242557, answered

What color is #242557?

#242557 is a deep soft blue, closest to Midnight Blue (ΔE2000 7.4). It sits at 239° on the hue wheel with 42% saturation and 24% lightness, which reads as cool.

What is the RGB value of #242557?

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

Is #242557 a light or a dark color?

It is a dark color. Relative luminance is 0.0239 and perceived brightness is 18%, so white text on it reaches 14.22:1.

Should I use black or white text on #242557?

White. It scores 14.22:1 against #242557, versus 1.48:1 for black — AAA at any size.

What is the complementary color of #242557?

#575624 sits directly opposite on the wheel. Softer options are the split-complements #573C24 and #3E5724, which give the same contrast with far less vibration.

What colors go well with #242557?

For interface work: #F4F4FA as the surface, #C5C6E7 for borders, #4B4C9B for secondary text, #594A21 as an accent and #25265A for hover and pressed states. For a palette, the analogous pair #243E57 and #3C2457 stays calm, while #575624 is the loudest partner.

What is #242557 in CMYK for printing?

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

Is #242557 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 #362457; nudged cooler, #233758.

Work with #242557 in the Color Lab