#2A2836#2A2836

#2A2836 is a dark, muted blue. Relative luminance 0.023; OKLCH L 28.5% C 0.026 H 291.2°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#2A2836
RGBrgb(42, 40, 54)
HSLhsl(249, 15%, 18%)
HSVhsv(249, 26%, 21%)
CMYKcmyk(22.2%, 25.9%, 0%, 78.8%)
CIE-LABlab(16.87, 4.57, -8.70)
CIE-LCHlch(16.87, 9.82, 297.70°)
OKLaboklab(28.51% 0.0093 -0.0238)
OKLCHoklch(28.51% 0.026 291.2)
XYZxyz(2.3793, 2.2761, 3.8033)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2836 #343628
analogous
#282D36 #2A2836 #312836
triadic
#2A2836 #362A28 #28362A
tetradic
#2A2836 #36282D #343628 #283631
square
#2A2836 #36282D #343628 #283631
split-complementary
#2A2836 #363128 #2D3628
monochromatic
#0E0D12 #0F0E13 #2A2836 #454259 #615C7C

Accessibility & contrast

On white

14.43
#2A2836 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2A2836 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2836
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2836#FFFFFF#000000##FFFFFF
##2A28361.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252A37
Deuteranopia (green-blind)
#252936
Tritanopia (blue-blind)
#282A2D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a2836;
/* rgb */ color: rgb(42, 40, 54);
/* oklch */ color: oklch(28.5% 0.026 291.2);
Tailwind
colors: {
  custom: {
    50: '#63616d',
    500: '#2a2836',
    950: '#000000',
  },
}
SCSS
$custom: #2a2836;
$custom-light: #63616d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2836",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 54
  },
  "hsl": {
    "h": 248.571,
    "s": 14.894,
    "l": 18.431
  },
  "oklch": {
    "l": 0.28512,
    "c": 0.02553,
    "h": 291.2
  },
  "luminance": 0.02276
}

Semantic roles & 50–950 ramp

primary
#2A2836
secondary
#646753
accent
#B870AD
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050507
muted
#79797A

Preview Lab

Preview with #2A2836

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2A2836 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva