#2A262F#2A262F

#2A262F is a dark, near-neutral violet. Relative luminance 0.021; OKLCH L 27.7% C 0.017 H 305.4°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#2A262F
RGBrgb(42, 38, 47)
HSLhsl(267, 11%, 17%)
HSVhsv(267, 19%, 18%)
CMYKcmyk(10.6%, 19.1%, 0%, 81.6%)
CIE-LABlab(15.92, 4.06, -5.22)
CIE-LCHlch(15.92, 6.61, 307.88°)
OKLaboklab(27.67% 0.01 -0.0141)
OKLCHoklch(27.67% 0.017 305.4)
XYZxyz(2.1610, 2.0837, 2.9771)
Luminance0.0208 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A262F #2B2F26
analogous
#26272F #2A262F #2F262F
triadic
#2A262F #2F2A26 #262F2A
tetradic
#2A262F #2F2627 #2B2F26 #262F2F
square
#2A262F #2F2627 #2B2F26 #262F2F
split-complementary
#2A262F #2F2F26 #272F26
monochromatic
#0F0E11 #0F0E11 #2A262F #484151 #665D73

Accessibility & contrast

On white

14.82
#2A262F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A262F
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A262F#FFFFFF#000000##FFFFFF
##2A262F1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25272F
Deuteranopia (green-blind)
#25282F
Tritanopia (blue-blind)
#292729
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a262f;
/* rgb */ color: rgb(42, 38, 47);
/* oklch */ color: oklch(27.7% 0.017 305.4);
Tailwind
colors: {
  custom: {
    50: '#636067',
    500: '#2a262f',
    950: '#000000',
  },
}
SCSS
$custom: #2a262f;
$custom-light: #636067;
$custom-dark: #000000;
JSON
{
  "hex": "#2a262f",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 47
  },
  "hsl": {
    "h": 266.667,
    "s": 10.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.27672,
    "c": 0.01727,
    "h": 305.4
  },
  "luminance": 0.02084
}

Semantic roles & 50–950 ramp

primary
#2A262F
secondary
#595F52
accent
#B47497
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050406
muted
#79797A

Preview Lab

Preview with #2A262F

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

Preview Lab → · Contrast checker → · Palette generator →

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