#2A4040#2A4040

#2A4040 is a dark, muted teal. Relative luminance 0.045; OKLCH L 35.3% C 0.028 H 196.0°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#2A4040
RGBrgb(42, 64, 64)
HSLhsl(180, 21%, 21%)
HSVhsv(180, 34%, 25%)
CMYKcmyk(34.4%, 0%, 0%, 74.9%)
CIE-LABlab(25.35, -8.57, -2.77)
CIE-LCHlch(25.35, 9.00, 197.90°)
OKLaboklab(35.32% -0.0265 -0.0076)
OKLCHoklch(35.32% 0.028 196)
XYZxyz(3.7133, 4.5290, 5.5280)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4040 #402A2A
analogous
#2A4035 #2A4040 #2A3540
triadic
#2A4040 #402A40 #40402A
tetradic
#2A4040 #352A40 #402A2A #35402A
square
#2A4040 #352A40 #402A2A #35402A
split-complementary
#2A4040 #402A35 #40352A
monochromatic
#0C1212 #121B1B #2A4040 #426565 #5A8A8A

Accessibility & contrast

On white

11.02
#2A4040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2A4040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4040
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4040#FFFFFF#000000##FFFFFF
##2A40401.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3E40
Deuteranopia (green-blind)
#393B40
Tritanopia (blue-blind)
#224140
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a4040;
/* rgb */ color: rgb(42, 64, 64);
/* oklch */ color: oklch(35.3% 0.028 196.0);
Tailwind
colors: {
  custom: {
    50: '#647474',
    500: '#2a4040',
    950: '#000000',
  },
}
SCSS
$custom: #2a4040;
$custom-light: #647474;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4040",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 64
  },
  "hsl": {
    "h": 180,
    "s": 20.755,
    "l": 20.784
  },
  "oklch": {
    "l": 0.35322,
    "c": 0.02758,
    "h": 196
  },
  "luminance": 0.04529
}

Semantic roles & 50–950 ramp

primary
#2A4040
secondary
#715555
accent
#6A6ABD
background
#F6F7F7
surface
#EBEDED
border
#C6C8C8
text
#050808
muted
#7A7B7B

Preview Lab

Preview with #2A4040

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

Preview Lab → · Contrast checker → · Palette generator →

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