#2A282F#2A282F

#2A282F is a dark, near-neutral violet. Relative luminance 0.022; OKLCH L 28.2% C 0.013 H 298.6°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#2A282F
RGBrgb(42, 40, 47)
HSLhsl(257, 8%, 17%)
HSVhsv(257, 15%, 18%)
CMYKcmyk(10.6%, 14.9%, 0%, 81.6%)
CIE-LABlab(16.58, 2.64, -4.23)
CIE-LCHlch(16.58, 4.99, 302.01°)
OKLaboklab(28.18% 0.0062 -0.0114)
OKLCHoklch(28.18% 0.013 298.6)
XYZxyz(2.2266, 2.2151, 2.9990)
Luminance0.0221 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A282F #2D2F28
analogous
#282A2F #2A282F #2E282F
triadic
#2A282F #2F2A28 #282F2A
tetradic
#2A282F #2F282A #2D2F28 #282F2E
square
#2A282F #2F282A #2D2F28 #282F2E
split-complementary
#2A282F #2F2E28 #2A2F28
monochromatic
#0F0E11 #0F0E11 #2A282F #484450 #656071

Accessibility & contrast

On white

14.55
#2A282F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2A282F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A282F
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A282F#FFFFFF#000000##FFFFFF
##2A282F1.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27292F
Deuteranopia (green-blind)
#27292F
Tritanopia (blue-blind)
#29292A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a282f;
/* rgb */ color: rgb(42, 40, 47);
/* oklch */ color: oklch(28.2% 0.013 298.6);
Tailwind
colors: {
  custom: {
    50: '#636167',
    500: '#2a282f',
    950: '#000000',
  },
}
SCSS
$custom: #2a282f;
$custom-light: #636167;
$custom-dark: #000000;
JSON
{
  "hex": "#2a282f",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 47
  },
  "hsl": {
    "h": 257.143,
    "s": 8.046,
    "l": 17.059
  },
  "oklch": {
    "l": 0.28183,
    "c": 0.01297,
    "h": 298.6
  },
  "luminance": 0.02215
}

Semantic roles & 50–950 ramp

primary
#2A282F
secondary
#5C5E54
accent
#B177A0
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050506
muted
#79797A

Preview Lab

Preview with #2A282F

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

Preview Lab → · Contrast checker → · Palette generator →

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