#2A2434#2A2434

#2A2434 is a dark, muted violet. Relative luminance 0.020; OKLCH L 27.4% C 0.030 H 301.6°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#2A2434
RGBrgb(42, 36, 52)
HSLhsl(263, 18%, 17%)
HSVhsv(263, 31%, 20%)
CMYKcmyk(19.2%, 30.8%, 0%, 79.6%)
CIE-LABlab(15.50, 6.85, -9.40)
CIE-LCHlch(15.50, 11.63, 306.08°)
OKLaboklab(27.42% 0.0158 -0.0257)
OKLCHoklch(27.42% 0.03 301.6)
XYZxyz(2.2054, 2.0019, 3.5184)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2434 #2E3424
analogous
#242634 #2A2434 #322434
triadic
#2A2434 #342A24 #24342A
tetradic
#2A2434 #342426 #2E3424 #243432
square
#2A2434 #342426 #2E3424 #243432
split-complementary
#2A2434 #343224 #263424
monochromatic
#0F0D12 #0F0D12 #2A2434 #473D58 #64567C

Accessibility & contrast

On white

15.00
#2A2434 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2434
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2434#FFFFFF#000000##FFFFFF
##2A24341.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212735
Deuteranopia (green-blind)
#222734
Tritanopia (blue-blind)
#28262A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a2434;
/* rgb */ color: rgb(42, 36, 52);
/* oklch */ color: oklch(27.4% 0.030 301.6);
Tailwind
colors: {
  custom: {
    50: '#635e6b',
    500: '#2a2434',
    950: '#000000',
  },
}
SCSS
$custom: #2a2434;
$custom-light: #635e6b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2434",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 52
  },
  "hsl": {
    "h": 262.5,
    "s": 18.182,
    "l": 17.255
  },
  "oklch": {
    "l": 0.27417,
    "c": 0.03021,
    "h": 301.6
  },
  "luminance": 0.02002
}

Semantic roles & 50–950 ramp

primary
#2A2434
secondary
#5D654E
accent
#BB6D9E
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050406
muted
#79797A

Preview Lab

Preview with #2A2434

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

Preview Lab → · Contrast checker → · Palette generator →

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