#2B262F#2B262F

#2B262F is a dark, near-neutral violet. Relative luminance 0.021; OKLCH L 27.8% C 0.018 H 310.1°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#2B262F
RGBrgb(43, 38, 47)
HSLhsl(273, 11%, 17%)
HSVhsv(273, 19%, 18%)
CMYKcmyk(8.5%, 19.1%, 0%, 81.6%)
CIE-LABlab(16.03, 4.49, -5.04)
CIE-LCHlch(16.03, 6.75, 311.67°)
OKLaboklab(27.78% 0.0114 -0.0136)
OKLCHoklch(27.78% 0.018 310.1)
XYZxyz(2.2024, 2.1051, 2.9791)
Luminance0.0210 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B262F #2A2F26
analogous
#27262F #2B262F #2F262F
triadic
#2B262F #2F2B26 #262F2B
tetradic
#2B262F #2F2726 #2A2F26 #262F2F
square
#2B262F #2F2726 #2A2F26 #262F2F
split-complementary
#2B262F #2F2F26 #262F27
monochromatic
#0F0E11 #0F0E11 #2B262F #4A4151 #695D73

Accessibility & contrast

On white

14.78
#2B262F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B262F
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B262F#FFFFFF#000000##FFFFFF
##2B262F1.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25282F
Deuteranopia (green-blind)
#26282F
Tritanopia (blue-blind)
#2B2729
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b262f;
/* rgb */ color: rgb(43, 38, 47);
/* oklch */ color: oklch(27.8% 0.018 310.1);
Tailwind
colors: {
  custom: {
    50: '#646067',
    500: '#2b262f',
    950: '#000000',
  },
}
SCSS
$custom: #2b262f;
$custom-light: #646067;
$custom-dark: #000000;
JSON
{
  "hex": "#2b262f",
  "rgb": {
    "r": 43,
    "g": 38,
    "b": 47
  },
  "hsl": {
    "h": 273.333,
    "s": 10.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.27782,
    "c": 0.01775,
    "h": 310.1
  },
  "luminance": 0.02105
}

Semantic roles & 50–950 ramp

primary
#2B262F
secondary
#585F52
accent
#B47490
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050406
muted
#79797A

Preview Lab

Preview with #2B262F

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

Preview Lab → · Contrast checker → · Palette generator →

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