#2A2A42#2A2A42

#2A2A42 is a dark, muted blue. Relative luminance 0.025; OKLCH L 29.7% C 0.043 H 283.4°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#2A2A42
RGBrgb(42, 42, 66)
HSLhsl(240, 22%, 21%)
HSVhsv(240, 36%, 26%)
CMYKcmyk(36.4%, 36.4%, 0%, 74.1%)
CIE-LABlab(18.10, 6.79, -15.12)
CIE-LCHlch(18.10, 16.58, 294.18°)
OKLaboklab(29.66% 0.0101 -0.0421)
OKLCHoklch(29.66% 0.043 283.4)
XYZxyz(2.7659, 2.5414, 5.4980)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A42 #42422A
analogous
#2A3642 #2A2A42 #362A42
triadic
#2A2A42 #422A2A #2A422A
tetradic
#2A2A42 #422A36 #42422A #2A4236
square
#2A2A42 #422A36 #42422A #2A4236
split-complementary
#2A2A42 #42362A #36422A
monochromatic
#0C0C13 #12121D #2A2A42 #424267 #5A5A8D

Accessibility & contrast

On white

13.92
#2A2A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2A2A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A42
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A42#FFFFFF#000000##FFFFFF
##2A2A421.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232D43
Deuteranopia (green-blind)
#222B41
Tritanopia (blue-blind)
#242E33
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a2a42;
/* rgb */ color: rgb(42, 42, 66);
/* oklch */ color: oklch(29.7% 0.043 283.4);
Tailwind
colors: {
  custom: {
    50: '#646376',
    500: '#2a2a42',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a42;
$custom-light: #646376;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a42",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 66
  },
  "hsl": {
    "h": 240,
    "s": 22.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29658,
    "c": 0.04328,
    "h": 283.4
  },
  "luminance": 0.02542
}

Semantic roles & 50–950 ramp

primary
#2A2A42
secondary
#737354
accent
#BF69BF
background
#F6F5F7
surface
#EBEAED
border
#C6C6C8
text
#050508
muted
#7A797B

Preview Lab

Preview with #2A2A42

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

Preview Lab → · Contrast checker → · Palette generator →

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