#2A242E#2A242E

#2A242E is a dark, muted violet. Relative luminance 0.020; OKLCH L 27.1% C 0.020 H 311.8°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#2A242E
RGBrgb(42, 36, 46)
HSLhsl(276, 12%, 16%)
HSVhsv(276, 22%, 18%)
CMYKcmyk(8.7%, 21.7%, 0%, 82%)
CIE-LABlab(15.23, 5.22, -5.55)
CIE-LCHlch(15.23, 7.62, 313.24°)
OKLaboklab(27.12% 0.0134 -0.015)
OKLCHoklch(27.12% 0.02 311.8)
XYZxyz(2.0788, 1.9513, 2.8514)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A242E #282E24
analogous
#25242E #2A242E #2E242D
triadic
#2A242E #2E2A24 #242E2A
tetradic
#2A242E #2E2524 #282E24 #242D2E
square
#2A242E #2E2524 #282E24 #242D2E
split-complementary
#2A242E #2D2E24 #242E25
monochromatic
#100D11 #100D11 #2A242E #493F50 #695A73

Accessibility & contrast

On white

15.11
#2A242E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2A242E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A242E
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A242E#FFFFFF#000000##FFFFFF
##2A242E1.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23262E
Deuteranopia (green-blind)
#24262E
Tritanopia (blue-blind)
#2A2527
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a242e;
/* rgb */ color: rgb(42, 36, 46);
/* oklch */ color: oklch(27.1% 0.020 311.8);
Tailwind
colors: {
  custom: {
    50: '#635e66',
    500: '#2a242e',
    950: '#000000',
  },
}
SCSS
$custom: #2a242e;
$custom-light: #635e66;
$custom-dark: #000000;
JSON
{
  "hex": "#2a242e",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 46
  },
  "hsl": {
    "h": 276,
    "s": 12.195,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27122,
    "c": 0.02008,
    "h": 311.8
  },
  "luminance": 0.01951
}

Semantic roles & 50–950 ramp

primary
#2A242E
secondary
#555E4F
accent
#B5738D
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050406
muted
#79797A

Preview Lab

Preview with #2A242E

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

Preview Lab → · Contrast checker → · Palette generator →

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