Skip to content

#232b49

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

RGB
35, 43, 73
HSL
227°, 35%, 21%
CMYK
52, 41, 0, 71
Luminance
0.0257

At a glance

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

Hex
#232b49
Hue
227°
blue
Saturation
35%
soft
Lightness
21%
deep
Brightness
29%
HSV value
Perceived
18%
weighted brightness
Luminance
0.0257
WCAG relative
Temperature
Cool
90/100 cool
Color family
Blue
Tone
Soft
Best ink
White
13.88:1
Closest name
Midnight Blue
ΔE2000 11.9
Where it sits
Hue227° of 360°
Saturation35%
Lightness21%
Temperature
Warm ← → Cool90% 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#232b49
RGBrgb(35, 43, 73)
HSLhsl(227, 35%, 21%)
CMYKcmyk(52%, 41%, 0%, 71%)
LABlab(18.2 6.2 -19.8)
LCHlch(18.2 20.7 287.4)
OKLCHoklch(0.297 0.056 271.4)
Decimal2304841
Display P3color(display-p3 0.137 0.169 0.286)

Copy-ready code

/* CSS */
color: #232b49;
background-color: #232b49;
/* Tailwind (arbitrary) */
class="text-[#232b49] bg-[#232b49]"
/* SCSS */
$brand: #232b49;
/* SwiftUI */
Color(red: 0.137, green: 0.169, blue: 0.286)
/* Android */
Color.parseColor("#232b49")
/* Flutter */
Color(0xFF232B49)
/* Python / OpenCV (BGR) */
(73, 43, 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 #232b49 · 13.88:1
Use #ffffffAAA at every size.
Aa
White text · 13.88:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.51:1
AA fail · AA large fail · AAA fail
Reading the other direction: #232b49 as text scores 13.88:1 on white and 1.51:1 on black.

Accessibility — WCAG contrast

Aa
#232b49 on white: 13.88:1
AA ✓ pass · AA-large · AAA
Aa
#232b49 on black: 1.51:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #202E4A
deuteranopia · #1C2B48
tritanopia · #153136

Color scale — 50 to 950

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

#F5F6F9
#EBEDF4
#D4D8E8
#B3BBDB
#8D9AC8
#6778B6
#4F61A5
#42518A
#35416E
#232b49
#1A1F33
Base = 900Lightest = 50 · #F5F6F9Darkest = 950 · #1A1F33
:root {
  --brand-50: #F5F6F9;
  --brand-100: #EBEDF4;
  --brand-200: #D4D8E8;
  --brand-300: #B3BBDB;
  --brand-400: #8D9AC8;
  --brand-500: #6778B6;
  --brand-600: #4F61A5;
  --brand-700: #42518A;
  --brand-800: #35416E;
  --brand-900: #232b49;
  --brand-950: #1A1F33;
  --brand: #232b49;
  --brand-ink: #ffffff;
}

Colors that work with #232b49

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#C8CEE5
Hairlines and dividers
Muted text#4B5B9B
Captions on the surface
Accent#4B3821
Second voice, not a rival
Dark variant#293356
Hover, pressed, headers
Light variant#EEF0F7
Selected rows, tints
Dark surface#141724
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 #232b49

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#494123
Analogous left#233E49
Analogous right#2E2349
Split-complement 1#492E23
Split-complement 2#3E4923
Triadic 1#49232B
Triadic 2#2B4923
Tetradic#49233E

RGB percentages

Red13.7%
Green16.9%
Blue28.6%

CMYK percentages

Cyan52.1%
Magenta41.1%
Yellow0.0%
Key (black)71.4%

Color previews

#232b49 text on a black background

contrast 1.51:1

Card sample

#232b49 text on a white background

contrast 13.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #232b49

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.

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

#232b49, answered

What color is #232b49?

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

What is the RGB value of #232b49?

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

Is #232b49 a light or a dark color?

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

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

White. It scores 13.88:1 against #232b49, versus 1.51:1 for black — AAA at any size.

What is the complementary color of #232b49?

#494123 sits directly opposite on the wheel. Softer options are the split-complements #492E23 and #3E4923, which give the same contrast with far less vibration.

What colors go well with #232b49?

For interface work: #F5F6FA as the surface, #C8CEE5 for borders, #4B5B9B for secondary text, #4B3821 as an accent and #293356 for hover and pressed states. For a palette, the analogous pair #233E49 and #2E2349 stays calm, while #494123 is the loudest partner.

What is #232b49 in CMYK for printing?

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

Is #232b49 warm or cool?

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

Work with #232b49 in the Color Lab