Skip to content

#2a366b

a dark, soft blue · cool · closest name: Dark Slate Blue

RGB
42, 54, 107
HSL
229°, 44%, 29%
CMYK
61, 50, 0, 58
Luminance
0.0419

At a glance

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

Hex
#2a366b
Hue
229°
blue
Saturation
44%
soft
Lightness
29%
dark
Brightness
42%
HSV value
Perceived
23%
weighted brightness
Luminance
0.0419
WCAG relative
Temperature
Cool
90/100 cool
Color family
Blue
Tone
Soft
Best ink
White
11.42:1
Closest name
Dark Slate Blue
ΔE2000 7.6
Where it sits
Hue229° of 360°
Saturation44%
Lightness29%
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#2a366b
RGBrgb(42, 54, 107)
HSLhsl(229, 44%, 29%)
CMYKcmyk(61%, 50%, 0%, 58%)
LABlab(24.3 12.7 -32.6)
LCHlch(24.3 35.0 291.4)
OKLCHoklch(0.352 0.093 271.3)
Decimal2766443
Display P3color(display-p3 0.165 0.212 0.420)

Copy-ready code

/* CSS */
color: #2a366b;
background-color: #2a366b;
/* Tailwind (arbitrary) */
class="text-[#2a366b] bg-[#2a366b]"
/* SCSS */
$brand: #2a366b;
/* SwiftUI */
Color(red: 0.165, green: 0.212, blue: 0.420)
/* Android */
Color.parseColor("#2a366b")
/* Flutter */
Color(0xFF2A366B)
/* Python / OpenCV (BGR) */
(107, 54, 42)

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

Accessibility — WCAG contrast

Aa
#2a366b on white: 11.42:1
AA ✓ pass · AA-large · AAA
Aa
#2a366b on black: 1.84:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1D3D6D
deuteranopia · #13376A
tritanopia · #00424B

Color scale — 50 to 950

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

#F5F6FA
#EAECF5
#D1D6EB
#AEB7DF
#8694D0
#5E70C0
#4559B0
#3A4A92
#2a366b
#252E56
#171D36
Base = 800Lightest = 50 · #F5F6FADarkest = 950 · #171D36
:root {
  --brand-50: #F5F6FA;
  --brand-100: #EAECF5;
  --brand-200: #D1D6EB;
  --brand-300: #AEB7DF;
  --brand-400: #8694D0;
  --brand-500: #5E70C0;
  --brand-600: #4559B0;
  --brand-700: #3A4A92;
  --brand-800: #2a366b;
  --brand-900: #252E56;
  --brand-950: #171D36;
  --brand: #2a366b;
  --brand-ink: #ffffff;
}

Colors that work with #2a366b

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#F4F5FA
Tinted page background
Border#C4CBE8
Hairlines and dividers
Muted text#4B599B
Captions on the surface
Accent#6E4F27
Second voice, not a rival
Dark variant#242E5C
Hover, pressed, headers
Light variant#EDEFF8
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 #2a366b

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#6B5F2A
Analogous left#2A566B
Analogous right#3E2A6B
Split-complement 1#6B3E2A
Split-complement 2#566B2A
Triadic 1#6B2A36
Triadic 2#366B2A
Tetradic#6B2A56

RGB percentages

Red16.5%
Green21.2%
Blue42.0%

CMYK percentages

Cyan60.7%
Magenta49.5%
Yellow0.0%
Key (black)58.0%

Color previews

#2a366b text on a black background

contrast 1.84:1

Card sample

#2a366b text on a white background

contrast 11.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 54, 107, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 54, 107, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2a366b;
background: linear-gradient(135deg, #2a366b, #492A6B);

Monochromatic scale

Palettes built from #2a366b

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.

#2a366b 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.

#2a366b, answered

What color is #2a366b?

#2a366b is a dark soft blue, closest to Dark Slate Blue (ΔE2000 7.6). It sits at 229° on the hue wheel with 44% saturation and 29% lightness, which reads as cool.

What is the RGB value of #2a366b?

rgb(42, 54, 107) — 42 red, 54 green and 107 blue out of 255, or 16.5% / 21.2% / 42% by channel.

Is #2a366b a light or a dark color?

It is a dark color. Relative luminance is 0.0419 and perceived brightness is 23%, so white text on it reaches 11.42:1.

Should I use black or white text on #2a366b?

White. It scores 11.42:1 against #2a366b, versus 1.84:1 for black — AAA at any size.

What is the complementary color of #2a366b?

#6B5F2A sits directly opposite on the wheel. Softer options are the split-complements #6B3E2A and #566B2A, which give the same contrast with far less vibration.

What colors go well with #2a366b?

For interface work: #F4F5FA as the surface, #C4CBE8 for borders, #4B599B for secondary text, #6E4F27 as an accent and #242E5C for hover and pressed states. For a palette, the analogous pair #2A566B and #3E2A6B stays calm, while #6B5F2A is the loudest partner.

What is #2a366b in CMYK for printing?

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

Is #2a366b 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 #362A6B; nudged cooler, #29446C.

Work with #2a366b in the Color Lab