Skip to content

#262f39

a deep, soft blue · cool · closest name: Black

RGB
38, 47, 57
HSL
212°, 20%, 19%
CMYK
33, 18, 0, 78
Luminance
0.0274

At a glance

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

Hex
#262f39
Hue
212°
blue
Saturation
20%
soft
Lightness
19%
deep
Brightness
22%
HSV value
Perceived
18%
weighted brightness
Luminance
0.0274
WCAG relative
Temperature
Cool
78/100 cool
Color family
Blue
Tone
Soft
Best ink
White
13.57:1
Closest name
Black
ΔE2000 13.5
Where it sits
Hue212° of 360°
Saturation20%
Lightness19%
Temperature
Warm ← → Cool78% 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#262f39
RGBrgb(38, 47, 57)
HSLhsl(212, 20%, 19%)
CMYKcmyk(33%, 18%, 0%, 78%)
LABlab(19.0 -1.0 -7.6)
LCHlch(19.0 7.7 262.7)
OKLCHoklch(0.301 0.022 251.3)
Decimal2502457
Display P3color(display-p3 0.149 0.184 0.224)

Copy-ready code

/* CSS */
color: #262f39;
background-color: #262f39;
/* Tailwind (arbitrary) */
class="text-[#262f39] bg-[#262f39]"
/* SCSS */
$brand: #262f39;
/* SwiftUI */
Color(red: 0.149, green: 0.184, blue: 0.224)
/* Android */
Color.parseColor("#262f39")
/* Flutter */
Color(0xFF262F39)
/* Python / OpenCV (BGR) */
(57, 47, 38)

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

Accessibility — WCAG contrast

Aa
#262f39 on white: 13.57:1
AA ✓ pass · AA-large · AAA
Aa
#262f39 on black: 1.55:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2B2F39
deuteranopia · #292D39
tritanopia · #213132

Color scale — 50 to 950

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

#F6F7F9
#EDF0F2
#D8DEE4
#BCC6D2
#9AAABC
#788EA5
#627993
#52657A
#415162
#323D48
#262f39
Base = 950Lightest = 50 · #F6F7F9Darkest = 950 · #262f39
:root {
  --brand-50: #F6F7F9;
  --brand-100: #EDF0F2;
  --brand-200: #D8DEE4;
  --brand-300: #BCC6D2;
  --brand-400: #9AAABC;
  --brand-500: #788EA5;
  --brand-600: #627993;
  --brand-700: #52657A;
  --brand-800: #415162;
  --brand-900: #323D48;
  --brand-950: #262f39;
  --brand: #262f39;
  --brand-ink: #ffffff;
}

Colors that work with #262f39

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#F6F7F9
Tinted page background
Border#CED6DE
Hairlines and dividers
Muted text#5C728A
Captions on the surface
Accent#3B2A24
Second voice, not a rival
Dark variant#333F4D
Hover, pressed, headers
Light variant#F0F2F5
Selected rows, tints
Dark surface#161C22
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 #262f39

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#393026
Analogous left#263839
Analogous right#262639
Split-complement 1#392626
Split-complement 2#383926
Triadic 1#39262F
Triadic 2#2F3926
Tetradic#392638

RGB percentages

Red14.9%
Green18.4%
Blue22.4%

CMYK percentages

Cyan33.3%
Magenta17.5%
Yellow0.0%
Key (black)77.6%

Color previews

#262f39 text on a black background

contrast 1.55:1

Card sample

#262f39 text on a white background

contrast 13.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(38, 47, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(38, 47, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #262f39;
background: linear-gradient(135deg, #262f39, #2A2639);

Monochromatic scale

Palettes built from #262f39

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.

#262f39 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.

#262f39, answered

What color is #262f39?

#262f39 is a deep soft blue, closest to Black (ΔE2000 13.5). It sits at 212° on the hue wheel with 20% saturation and 19% lightness, which reads as cool.

What is the RGB value of #262f39?

rgb(38, 47, 57) — 38 red, 47 green and 57 blue out of 255, or 14.9% / 18.4% / 22.4% by channel.

Is #262f39 a light or a dark color?

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

Should I use black or white text on #262f39?

White. It scores 13.57:1 against #262f39, versus 1.55:1 for black — AAA at any size.

What is the complementary color of #262f39?

#393026 sits directly opposite on the wheel. Softer options are the split-complements #392626 and #383926, which give the same contrast with far less vibration.

What colors go well with #262f39?

For interface work: #F6F7F9 as the surface, #CED6DE for borders, #5C728A for secondary text, #3B2A24 as an accent and #333F4D for hover and pressed states. For a palette, the analogous pair #263839 and #262639 stays calm, while #393026 is the loudest partner.

What is #262f39 in CMYK for printing?

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

Is #262f39 warm or cool?

Cool — it scores 78 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #262839; nudged cooler, #1B222A.

Work with #262f39 in the Color Lab