#2A2830#2A2830

#2A2830 is a dark, near-neutral violet. Relative luminance 0.022; OKLCH L 28.2% C 0.015 H 296.9°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#2A2830
RGBrgb(42, 40, 48)
HSLhsl(255, 9%, 17%)
HSVhsv(255, 17%, 19%)
CMYKcmyk(12.5%, 16.7%, 0%, 81.2%)
CIE-LABlab(16.62, 2.91, -4.88)
CIE-LCHlch(16.62, 5.68, 300.82°)
OKLaboklab(28.23% 0.0067 -0.0132)
OKLCHoklch(28.23% 0.015 296.9)
XYZxyz(2.2470, 2.2232, 3.1065)
Luminance0.0222 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2830 #2E3028
analogous
#282A30 #2A2830 #2E2830
triadic
#2A2830 #302A28 #28302A
tetradic
#2A2830 #30282A #2E3028 #28302E
square
#2A2830 #30282A #2E3028 #28302E
split-complementary
#2A2830 #302E28 #2A3028
monochromatic
#0F0E11 #0F0E11 #2A2830 #474451 #646073

Accessibility & contrast

On white

14.54
#2A2830 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2A2830 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2830
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2830#FFFFFF#000000##FFFFFF
##2A28301.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262930
Deuteranopia (green-blind)
#272930
Tritanopia (blue-blind)
#29292B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a2830;
/* rgb */ color: rgb(42, 40, 48);
/* oklch */ color: oklch(28.2% 0.015 296.9);
Tailwind
colors: {
  custom: {
    50: '#636168',
    500: '#2a2830',
    950: '#000000',
  },
}
SCSS
$custom: #2a2830;
$custom-light: #636168;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2830",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 48
  },
  "hsl": {
    "h": 255,
    "s": 9.091,
    "l": 17.255
  },
  "oklch": {
    "l": 0.28228,
    "c": 0.01475,
    "h": 296.9
  },
  "luminance": 0.02223
}

Semantic roles & 50–950 ramp

primary
#2A2830
secondary
#5D6054
accent
#B276A3
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050506
muted
#79797A

Preview Lab

Preview with #2A2830

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

Preview Lab → · Contrast checker → · Palette generator →

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