Skip to content

#232f49

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

RGB
35, 47, 73
HSL
221°, 35%, 21%
CMYK
52, 36, 0, 71
Luminance
0.0287

At a glance

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

Hex
#232f49
Hue
221°
blue
Saturation
35%
soft
Lightness
21%
deep
Brightness
29%
HSV value
Perceived
19%
weighted brightness
Luminance
0.0287
WCAG relative
Temperature
Cool
94/100 cool
Color family
Blue
Tone
Soft
Best ink
White
13.34:1
Closest name
Midnight Blue
ΔE2000 12.3
Where it sits
Hue221° of 360°
Saturation35%
Lightness21%
Temperature
Warm ← → Cool94% 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#232f49
RGBrgb(35, 47, 73)
HSLhsl(221, 35%, 21%)
CMYKcmyk(52%, 36%, 0%, 71%)
LABlab(19.5 3.4 -17.7)
LCHlch(19.5 18.0 280.7)
OKLCHoklch(0.307 0.050 264.7)
Decimal2305865
Display P3color(display-p3 0.137 0.184 0.286)

Copy-ready code

/* CSS */
color: #232f49;
background-color: #232f49;
/* Tailwind (arbitrary) */
class="text-[#232f49] bg-[#232f49]"
/* SCSS */
$brand: #232f49;
/* SwiftUI */
Color(red: 0.137, green: 0.184, blue: 0.286)
/* Android */
Color.parseColor("#232f49")
/* Flutter */
Color(0xFF232F49)
/* Python / OpenCV (BGR) */
(73, 47, 35)

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

Accessibility — WCAG contrast

Aa
#232f49 on white: 13.34:1
AA ✓ pass · AA-large · AAA
Aa
#232f49 on black: 1.57:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #25314A
deuteranopia · #212E48
tritanopia · #143538

Color scale — 50 to 950

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

#F5F7F9
#EBEEF4
#D4DAE8
#B3C0DB
#8DA0C8
#6780B6
#4F6AA5
#42598A
#35476E
#232f49
#1A2233
Base = 900Lightest = 50 · #F5F7F9Darkest = 950 · #1A2233
:root {
  --brand-50: #F5F7F9;
  --brand-100: #EBEEF4;
  --brand-200: #D4DAE8;
  --brand-300: #B3C0DB;
  --brand-400: #8DA0C8;
  --brand-500: #6780B6;
  --brand-600: #4F6AA5;
  --brand-700: #42598A;
  --brand-800: #35476E;
  --brand-900: #232f49;
  --brand-950: #1A2233;
  --brand: #232f49;
  --brand-ink: #ffffff;
}

Colors that work with #232f49

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#F5F6FA
Tinted page background
Border#C8D1E5
Hairlines and dividers
Muted text#4B649B
Captions on the surface
Accent#4B3321
Second voice, not a rival
Dark variant#293756
Hover, pressed, headers
Light variant#EEF1F7
Selected rows, tints
Dark surface#141924
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 #232f49

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#493D23
Analogous left#234249
Analogous right#2A2349
Split-complement 1#492A23
Split-complement 2#424923
Triadic 1#49232F
Triadic 2#2F4923
Tetradic#492342

RGB percentages

Red13.7%
Green18.4%
Blue28.6%

CMYK percentages

Cyan52.1%
Magenta35.6%
Yellow0.0%
Key (black)71.4%

Color previews

#232f49 text on a black background

contrast 1.57:1

Card sample

#232f49 text on a white background

contrast 13.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(35, 47, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(35, 47, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #232f49;
background: linear-gradient(135deg, #232f49, #302349);

Monochromatic scale

Palettes built from #232f49

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.

#232f49 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.

#232f49, answered

What color is #232f49?

#232f49 is a deep soft blue, closest to Midnight Blue (ΔE2000 12.3). It sits at 221° on the hue wheel with 35% saturation and 21% lightness, which reads as cool.

What is the RGB value of #232f49?

rgb(35, 47, 73) — 35 red, 47 green and 73 blue out of 255, or 13.7% / 18.4% / 28.6% by channel.

Is #232f49 a light or a dark color?

It is a dark color. Relative luminance is 0.0287 and perceived brightness is 19%, so white text on it reaches 13.34:1.

Should I use black or white text on #232f49?

White. It scores 13.34:1 against #232f49, versus 1.57:1 for black — AAA at any size.

What is the complementary color of #232f49?

#493D23 sits directly opposite on the wheel. Softer options are the split-complements #492A23 and #424923, which give the same contrast with far less vibration.

What colors go well with #232f49?

For interface work: #F5F6FA as the surface, #C8D1E5 for borders, #4B649B for secondary text, #4B3321 as an accent and #293756 for hover and pressed states. For a palette, the analogous pair #234249 and #2A2349 stays calm, while #493D23 is the loudest partner.

What is #232f49 in CMYK for printing?

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

Is #232f49 warm or cool?

Cool — it scores 94 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #252349; nudged cooler, #22344A.

Work with #232f49 in the Color Lab