Skip to content

#42657c

a dark, soft blue · cool · closest name: Royal Blue

RGB
66, 101, 124
HSL
204°, 31%, 37%
CMYK
47, 19, 0, 51
Luminance
0.1192

At a glance

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

Hex
#42657c
Hue
204°
blue
Saturation
31%
soft
Lightness
37%
dark
Brightness
49%
HSV value
Perceived
37%
weighted brightness
Luminance
0.1192
WCAG relative
Temperature
Cool
91/100 cool
Color family
Blue
Tone
Soft
Best ink
White
6.21:1
Closest name
Royal Blue
ΔE2000 11.6
Where it sits
Hue204° of 360°
Saturation31%
Lightness37%
Temperature
Warm ← → Cool91% 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#42657c
RGBrgb(66, 101, 124)
HSLhsl(204, 31%, 37%)
CMYKcmyk(47%, 19%, 0%, 51%)
LABlab(41.1 -5.9 -16.8)
LCHlch(41.1 17.8 250.7)
OKLCHoklch(0.490 0.055 238.2)
Decimal4351356
Display P3color(display-p3 0.259 0.396 0.486)

Copy-ready code

/* CSS */
color: #42657c;
background-color: #42657c;
/* Tailwind (arbitrary) */
class="text-[#42657c] bg-[#42657c]"
/* SCSS */
$brand: #42657c;
/* SwiftUI */
Color(red: 0.259, green: 0.396, blue: 0.486)
/* Android */
Color.parseColor("#42657c")
/* Flutter */
Color(0xFF42657C)
/* Python / OpenCV (BGR) */
(124, 101, 66)

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 #42657c · 6.21:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.21:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.38:1
AA fail · AA large pass · AAA fail
Reading the other direction: #42657c as text scores 6.21:1 on white and 3.38:1 on black.

Accessibility — WCAG contrast

Aa
#42657c on white: 6.21:1
AA ✓ pass · AA-large · AAA
Aa
#42657c on black: 3.38:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5B647D
deuteranopia · #535E7C
tritanopia · #296B6D

Color scale — 50 to 950

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

#F6F8F9
#ECF0F3
#D5E0E7
#B6CAD8
#91B0C5
#6D96B1
#5582A0
#42657c
#39576A
#2C414E
#1C2831
Base = 700Lightest = 50 · #F6F8F9Darkest = 950 · #1C2831
:root {
  --brand-50: #F6F8F9;
  --brand-100: #ECF0F3;
  --brand-200: #D5E0E7;
  --brand-300: #B6CAD8;
  --brand-400: #91B0C5;
  --brand-500: #6D96B1;
  --brand-600: #5582A0;
  --brand-700: #42657c;
  --brand-800: #39576A;
  --brand-900: #2C414E;
  --brand-950: #1C2831;
  --brand: #42657c;
  --brand-ink: #ffffff;
}

Colors that work with #42657c

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#F5F8FA
Tinted page background
Border#CAD9E3
Hairlines and dividers
Muted text#507A96
Captions on the surface
Accent#80483E
Second voice, not a rival
Dark variant#2C4453
Hover, pressed, headers
Light variant#EEF3F6
Selected rows, tints
Dark surface#141E24
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 #42657c

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
  • 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#7C5942
Analogous left#427C76
Analogous right#42487C
Split-complement 1#7C4248
Split-complement 2#7C7642
Triadic 1#7C4265
Triadic 2#657C42
Tetradic#76427C

RGB percentages

Red25.9%
Green39.6%
Blue48.6%

CMYK percentages

Cyan46.8%
Magenta18.5%
Yellow0.0%
Key (black)51.4%

Color previews

#42657c text on a black background

contrast 3.38:1

Card sample

#42657c text on a white background

contrast 6.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(66, 101, 124, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(66, 101, 124, 0.45);
Border & gradient
Gradient panel
border: 3px solid #42657c;
background: linear-gradient(135deg, #42657c, #46427C);

Monochromatic scale

Palettes built from #42657c

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.

#42657c 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.

#42657c, answered

What color is #42657c?

#42657c is a dark soft blue, closest to Royal Blue (ΔE2000 11.6). It sits at 204° on the hue wheel with 31% saturation and 37% lightness, which reads as cool.

What is the RGB value of #42657c?

rgb(66, 101, 124) — 66 red, 101 green and 124 blue out of 255, or 25.9% / 39.6% / 48.6% by channel.

Is #42657c a light or a dark color?

It is a dark color. Relative luminance is 0.1192 and perceived brightness is 37%, so white text on it reaches 6.21:1.

Should I use black or white text on #42657c?

White. It scores 6.21:1 against #42657c, versus 3.38:1 for black — AA at any size.

What is the complementary color of #42657c?

#7C5942 sits directly opposite on the wheel. Softer options are the split-complements #7C4248 and #7C7642, which give the same contrast with far less vibration.

What colors go well with #42657c?

For interface work: #F5F8FA as the surface, #CAD9E3 for borders, #507A96 for secondary text, #80483E as an accent and #2C4453 for hover and pressed states. For a palette, the analogous pair #427C76 and #42487C stays calm, while #7C5942 is the loudest partner.

What is #42657c in CMYK for printing?

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

Is #42657c warm or cool?

Cool — it scores 91 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #427A7C; nudged cooler, #405F7E.

Work with #42657c in the Color Lab