#2A2437#2A2437

#2A2437 is a dark, muted violet. Relative luminance 0.020; OKLCH L 27.6% C 0.035 H 298.6°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#2A2437
RGBrgb(42, 36, 55)
HSLhsl(259, 21%, 18%)
HSVhsv(259, 35%, 22%)
CMYKcmyk(23.6%, 34.5%, 0%, 78.4%)
CIE-LABlab(15.64, 7.71, -11.29)
CIE-LCHlch(15.64, 13.67, 304.33°)
OKLaboklab(27.58% 0.0169 -0.0311)
OKLCHoklch(27.58% 0.035 298.6)
XYZxyz(2.2752, 2.0298, 3.8856)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2437 #313724
analogous
#242737 #2A2437 #332437
triadic
#2A2437 #372A24 #24372A
tetradic
#2A2437 #372427 #313724 #243733
square
#2A2437 #372427 #313724 #243733
split-complementary
#2A2437 #373324 #273724
monochromatic
#0E0C12 #0E0C12 #2A2437 #463C5C #625481

Accessibility & contrast

On white

14.94
#2A2437 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2437
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2437#FFFFFF#000000##FFFFFF
##2A24371.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202738
Deuteranopia (green-blind)
#212736
Tritanopia (blue-blind)
#28272B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a2437;
/* rgb */ color: rgb(42, 36, 55);
/* oklch */ color: oklch(27.6% 0.035 298.6);
Tailwind
colors: {
  custom: {
    50: '#645e6d',
    500: '#2a2437',
    950: '#000000',
  },
}
SCSS
$custom: #2a2437;
$custom-light: #645e6d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2437",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 55
  },
  "hsl": {
    "h": 258.947,
    "s": 20.879,
    "l": 17.843
  },
  "oklch": {
    "l": 0.27577,
    "c": 0.0354,
    "h": 298.6
  },
  "luminance": 0.0203
}

Semantic roles & 50–950 ramp

primary
#2A2437
secondary
#60694E
accent
#BD6AA3
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050407
muted
#79797A

Preview Lab

Preview with #2A2437

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

Preview Lab → · Contrast checker → · Palette generator →

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