#2A262D#2A262D

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

Color values

HEX#2A262D
RGBrgb(42, 38, 45)
HSLhsl(274, 8%, 16%)
HSVhsv(274, 16%, 18%)
CMYKcmyk(6.7%, 15.6%, 0%, 82.4%)
CIE-LABlab(15.84, 3.54, -3.92)
CIE-LCHlch(15.84, 5.28, 312.06°)
OKLaboklab(27.58% 0.0091 -0.0105)
OKLCHoklch(27.58% 0.014 310.8)
XYZxyz(2.1215, 2.0679, 2.7695)
Luminance0.0207 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A262D #292D26
analogous
#27262D #2A262D #2D262D
triadic
#2A262D #2D2A26 #262D2A
tetradic
#2A262D #2D2726 #292D26 #262D2D
square
#2A262D #2D2726 #292D26 #262D2D
split-complementary
#2A262D #2D2D26 #262D27
monochromatic
#0F0E11 #0F0E11 #2A262D #49424E #685E6F

Accessibility & contrast

On white

14.86
#2A262D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2A262D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A262D
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A262D#FFFFFF#000000##FFFFFF
##2A262D1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25272D
Deuteranopia (green-blind)
#26282D
Tritanopia (blue-blind)
#2A2728
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a262d;
/* rgb */ color: rgb(42, 38, 45);
/* oklch */ color: oklch(27.6% 0.014 310.8);
Tailwind
colors: {
  custom: {
    50: '#636065',
    500: '#2a262d',
    950: '#000000',
  },
}
SCSS
$custom: #2a262d;
$custom-light: #636065;
$custom-dark: #000000;
JSON
{
  "hex": "#2a262d",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 45
  },
  "hsl": {
    "h": 274.286,
    "s": 8.434,
    "l": 16.275
  },
  "oklch": {
    "l": 0.27582,
    "c": 0.0139,
    "h": 310.8
  },
  "luminance": 0.02068
}

Semantic roles & 50–950 ramp

primary
#2A262D
secondary
#575D52
accent
#B17690
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050405
muted
#79797A

Preview Lab

Preview with #2A262D

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

Preview Lab → · Contrast checker → · Palette generator →

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