#2A2634#2A2634

#2A2634 is a dark, muted violet. Relative luminance 0.021; OKLCH L 27.9% C 0.026 H 297.8°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#2A2634
RGBrgb(42, 38, 52)
HSLhsl(257, 16%, 18%)
HSVhsv(257, 27%, 20%)
CMYKcmyk(19.2%, 26.9%, 0%, 79.6%)
CIE-LABlab(16.14, 5.42, -8.42)
CIE-LCHlch(16.14, 10.01, 302.77°)
OKLaboklab(27.91% 0.0121 -0.023)
OKLCHoklch(27.91% 0.026 297.8)
XYZxyz(2.2677, 2.1264, 3.5391)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2634 #303426
analogous
#262934 #2A2634 #312634
triadic
#2A2634 #342A26 #26342A
tetradic
#2A2634 #342629 #303426 #263431
square
#2A2634 #342629 #303426 #263431
split-complementary
#2A2634 #343126 #293426
monochromatic
#0E0D12 #0E0D12 #2A2634 #474057 #635A7B

Accessibility & contrast

On white

14.73
#2A2634 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2A2634 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2634
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2634#FFFFFF#000000##FFFFFF
##2A26341.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232835
Deuteranopia (green-blind)
#242834
Tritanopia (blue-blind)
#28282B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a2634;
/* rgb */ color: rgb(42, 38, 52);
/* oklch */ color: oklch(27.9% 0.026 297.8);
Tailwind
colors: {
  custom: {
    50: '#63606b',
    500: '#2a2634',
    950: '#000000',
  },
}
SCSS
$custom: #2a2634;
$custom-light: #63606b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2634",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 52
  },
  "hsl": {
    "h": 257.143,
    "s": 15.556,
    "l": 17.647
  },
  "oklch": {
    "l": 0.27911,
    "c": 0.02599,
    "h": 297.8
  },
  "luminance": 0.02126
}

Semantic roles & 50–950 ramp

primary
#2A2634
secondary
#5F6551
accent
#B86FA4
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050406
muted
#79797A

Preview Lab

Preview with #2A2634

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

Preview Lab → · Contrast checker → · Palette generator →

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