#2A252E#2A252E

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

Color values

HEX#2A252E
RGBrgb(42, 37, 46)
HSLhsl(273, 11%, 16%)
HSVhsv(273, 20%, 18%)
CMYKcmyk(8.7%, 19.6%, 0%, 82%)
CIE-LABlab(15.55, 4.51, -5.06)
CIE-LCHlch(15.55, 6.78, 311.69°)
OKLaboklab(27.37% 0.0115 -0.0136)
OKLCHoklch(27.37% 0.018 310.1)
XYZxyz(2.1095, 2.0126, 2.8616)
Luminance0.0201 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A252E #292E25
analogous
#26252E #2A252E #2E252E
triadic
#2A252E #2E2A25 #252E2A
tetradic
#2A252E #2E2625 #292E25 #252E2E
square
#2A252E #2E2625 #292E25 #252E2E
split-complementary
#2A252E #2E2E25 #252E26
monochromatic
#0F0E11 #0F0E11 #2A252E #494050 #685C72

Accessibility & contrast

On white

14.97
#2A252E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2A252E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A252E
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A252E#FFFFFF#000000##FFFFFF
##2A252E1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24272E
Deuteranopia (green-blind)
#25272E
Tritanopia (blue-blind)
#2A2628
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a252e;
/* rgb */ color: rgb(42, 37, 46);
/* oklch */ color: oklch(27.4% 0.018 310.1);
Tailwind
colors: {
  custom: {
    50: '#635f66',
    500: '#2a252e',
    950: '#000000',
  },
}
SCSS
$custom: #2a252e;
$custom-light: #635f66;
$custom-dark: #000000;
JSON
{
  "hex": "#2a252e",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 46
  },
  "hsl": {
    "h": 273.333,
    "s": 10.843,
    "l": 16.275
  },
  "oklch": {
    "l": 0.27373,
    "c": 0.01782,
    "h": 310.1
  },
  "luminance": 0.02013
}

Semantic roles & 50–950 ramp

primary
#2A252E
secondary
#575E51
accent
#B47490
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050406
muted
#79797A

Preview Lab

Preview with #2A252E

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

Preview Lab → · Contrast checker → · Palette generator →

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