#2A262E#2A262E

#2A262E is a dark, near-neutral violet. Relative luminance 0.021; OKLCH L 27.6% C 0.016 H 307.8°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#2A262E
RGBrgb(42, 38, 46)
HSLhsl(270, 10%, 16%)
HSVhsv(270, 17%, 18%)
CMYKcmyk(8.7%, 17.4%, 0%, 82%)
CIE-LABlab(15.88, 3.80, -4.57)
CIE-LCHlch(15.88, 5.94, 309.72°)
OKLaboklab(27.63% 0.0096 -0.0123)
OKLCHoklch(27.63% 0.016 307.8)
XYZxyz(2.1410, 2.0757, 2.8721)
Luminance0.0208 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A262E #2A2E26
analogous
#26262E #2A262E #2E262E
triadic
#2A262E #2E2A26 #262E2A
tetradic
#2A262E #2E2626 #2A2E26 #262E2E
square
#2A262E #2E2626 #2A2E26 #262E2E
split-complementary
#2A262E #2E2E26 #262E26
monochromatic
#0F0E11 #0F0E11 #2A262E #494250 #675D71

Accessibility & contrast

On white

14.84
#2A262E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2A262E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A262E
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A262E#FFFFFF#000000##FFFFFF
##2A262E1.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25272E
Deuteranopia (green-blind)
#26282E
Tritanopia (blue-blind)
#2A2729
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a262e;
/* rgb */ color: rgb(42, 38, 46);
/* oklch */ color: oklch(27.6% 0.016 307.8);
Tailwind
colors: {
  custom: {
    50: '#636066',
    500: '#2a262e',
    950: '#000000',
  },
}
SCSS
$custom: #2a262e;
$custom-light: #636066;
$custom-dark: #000000;
JSON
{
  "hex": "#2a262e",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 46
  },
  "hsl": {
    "h": 270,
    "s": 9.524,
    "l": 16.471
  },
  "oklch": {
    "l": 0.27626,
    "c": 0.01557,
    "h": 307.8
  },
  "luminance": 0.02076
}

Semantic roles & 50–950 ramp

primary
#2A262E
secondary
#585E52
accent
#B37594
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050406
muted
#79797A

Preview Lab

Preview with #2A262E

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

Preview Lab → · Contrast checker → · Palette generator →

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