#2A2838#2A2838

#2A2838 is a dark, muted blue. Relative luminance 0.023; OKLCH L 28.6% C 0.029 H 290.2°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#2A2838
RGBrgb(42, 40, 56)
HSLhsl(248, 17%, 19%)
HSVhsv(248, 29%, 22%)
CMYKcmyk(25%, 28.6%, 0%, 78%)
CIE-LABlab(16.97, 5.15, -9.96)
CIE-LCHlch(16.97, 11.21, 297.33°)
OKLaboklab(28.61% 0.01 -0.0273)
OKLCHoklch(28.61% 0.029 290.2)
XYZxyz(2.4273, 2.2953, 4.0558)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2838 #363828
analogous
#282E38 #2A2838 #322838
triadic
#2A2838 #382A28 #28382A
tetradic
#2A2838 #38282E #363828 #283832
square
#2A2838 #38282E #363828 #283832
split-complementary
#2A2838 #383228 #2E3828
monochromatic
#0D0D12 #0F0F14 #2A2838 #45425C #605B7F

Accessibility & contrast

On white

14.39
#2A2838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2838
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2838#FFFFFF#000000##FFFFFF
##2A28381.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242A39
Deuteranopia (green-blind)
#242938
Tritanopia (blue-blind)
#272B2E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a2838;
/* rgb */ color: rgb(42, 40, 56);
/* oklch */ color: oklch(28.6% 0.029 290.2);
Tailwind
colors: {
  custom: {
    50: '#63616e',
    500: '#2a2838',
    950: '#000000',
  },
}
SCSS
$custom: #2a2838;
$custom-light: #63616e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2838",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 56
  },
  "hsl": {
    "h": 247.5,
    "s": 16.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28614,
    "c": 0.02911,
    "h": 290.2
  },
  "luminance": 0.02295
}

Semantic roles & 50–950 ramp

primary
#2A2838
secondary
#666953
accent
#B96EB0
background
#F5F5F6
surface
#EAE9EC
border
#C6C5C7
text
#050507
muted
#79797A

Preview Lab

Preview with #2A2838

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

Preview Lab → · Contrast checker → · Palette generator →

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