#27272A Color Details, Palettes & Contrast

All the conversions, harmonies, and accessibility checks you need to design with confidence.

RGB:rgb(39, 39, 42)
HSL:hsl(240, 4%, 16%)
HEX
#27272A
RGB
39, 39, 42
HSL
240°, 4%, 16%
HSV
240°, 7%, 16%
CMYK
7%, 7%, 0%, 84%

Color Conversion

Generate values across multiple color models in one place.

#27272A

Tints & shades

Explore how #27272A behaves when you mix it with white or black. These swatches are perfect for hover states, shadows, and backgrounds.

Hover to copy any hex value and reuse it across your interface.

Shades

0–100%
0%#27272A
10%#232326
20%#1F1F22
30%#1B1B1E
40%#181819
50%#141415
60%#101011
70%#0C0C0D
80%#080808
90%#040404
100%#000000

Tints

0–100%
0%#27272A
10%#3C3C41
20%#505057
30%#65656D
40%#797984
50%#909098
60%#A6A6AD
70%#BCBCC1
80%#D2D2D6
90%#E9E9EA
100%#FFFFFF

Common use cases

  • UI component states (hover, active, disabled)
  • Creating depth with shadows and highlights
  • Building consistent color systems

Design system

Design system tip

These variations form the foundation of a cohesive palette. Export them to keep marketing, product, and engineering aligned.

Export palette

Color harmonies

Build balanced palettes instantly with harmonies generated from #27272A.

Click any swatch to open its own detail page and keep exploring.

How to use

Pick one dominant color, then let supporting hues act as accents for typography, surfaces, and call-to-action buttons.

Why it matters

Balanced harmonies communicate intent—calm, energetic, premium—without overwhelming your layout.

Complementary

Opposite hues that create impact and bold contrast.

Suggested for

High-impact CTAs, logos, and hero sections

Analogous

Neighboring hues for natural, fluid gradients.

Suggested for

Nature-inspired, calming dashboards

Triadic

Three evenly spaced hues for playful balance.

Suggested for

Playful branding and editorial layouts

Tetradic

Two complementary pairs that deliver rich variety.

Suggested for

Illustrations and marketing experiments

Monochromatic

Lighter and darker siblings inside the same hue family.

Suggested for

Minimalist interfaces and premium UI states

Accessibility contrast

Check how readable #27272A is with common text colors so every visitor enjoys a clear experience.

Use AA as the baseline for body copy and AAA for premium accessibility.

Sample text on black text
Text color#000000
Background#27272A
Contrast ratio1.41:1
WCAG levelFail
Sample text on white text
Text color#FFFFFF
Background#27272A
Contrast ratio14.89:1
WCAG levelAAA
Recommended text preview
Text color#FFFFFF
Background#27272A
Contrast ratio14.89:1
WCAG levelAAA

Technical Formats

Advanced color formats used in design systems.

HEX
#27272A
RGB
rgb(39, 39, 42)
HSL
hsl(240, 3.7%, 15.88%)
HSV
hsv(240.00 7.14% 16.47%)
LAB
lab(15.73 0.56 -1.98)
LCH
lch(15.73 2.06 285.72)
OKLAB
oklab(0.27 0.0015 -0.0053)
OKLCH
oklch(0.27 0.0055 286.03)
Display P3
color(display-p3 0.15294117647058827 0.15294117647058827 0.16368905834083552)
CSS Color Level 4
color(srgb 0.15294117647058825 0.15294117647058825 0.16470588235294117)
XYZ
color(xyz-d65 0.0198 0.0205 0.0248)
CMYK
cmyk(7.14% 7.14% 0.00% 83.53%)

Practical Formats

Variables, config files, and code snippets.

CSS Variable
--color-brand-primary: #27272A;
CSS RGB Variable
--color-brand-primary-rgb: 39, 39, 42;
SCSS Variable
$color-brand-primary: #27272A;
Tailwind Config
"brand-primary": "#27272A"
JavaScript
const brandprimary = "#27272A";
Design Token JSON
{
  "color": {
    "brand-primary": {
      "value": "#27272A",
      "type": "color"
    }
  }
}
SVG Fill
<rect fill="#27272A" />
Android XML
<color name="brand_primary">#27272A</color>
iOS Swift
UIColor(red: 0.153, green: 0.153, blue: 0.165, alpha: 1.0)
HSL CSS Variable
--color-brand-primary-hsl: 240.00 3.70% 15.88%;

Color Analysis

Deep dive into color properties and accessibility.

Closest Color Name
black
Temperature
Cool
Hue Family
Blue
Relative Luminance
0.0205
Saturation Level
Muted
Lightness Level
Very dark

Blindness Simulator

How this color appears under color vision deficiencies.

Protanopia

Red-blind simulation

#27272A

Deuteranopia

Green-blind simulation

#27272A

Tritanopia

Blue-blind simulation

#272727

Achromatopsia

No-color simulation

#272727

Creative Aspects

Palettes, gradients, and moods.

Complementary

#27272A#2A2A27

Analogous

#27292A#27272A#29272A

Triadic

#27272A#2A2727#272A27

Tetradic

#27272A#2A2729#2A2A27#272A29

Monochromatic

#7B7B7F#4F4F52#27272A#17171A#000000

Tints

#FFFFFF#C3C3C4#8B8B8D#565659#27272A

Shades

#27272A#1F1F22#17171A#0E0E11#000000

Gradient Flow

#27282A#27282A#27272A#27272A#28272A

Design guidance

Balance

Treat #27272A as a highlight. Pair it with neutrals and one supporting hue to avoid visual overload.

Contrast

Test combinations with real content. Higher contrast improves scanning, readability, and conversions.

Harmony

Use lighter tints for surfaces, the base color for primaries, and darker shades for hover or pressed states.

Need another color?

Jump back to the color picker to upload images, generate palettes, and explore new color relationships.

Pick Another Color