#2A223A#2A223A

#2A223A is a dark, muted violet. Relative luminance 0.019; OKLCH L 27.3% C 0.045 H 298.7°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#2A223A
RGBrgb(42, 34, 58)
HSLhsl(260, 26%, 18%)
HSVhsv(260, 41%, 23%)
CMYKcmyk(27.6%, 41.4%, 0%, 77.3%)
CIE-LABlab(15.18, 10.03, -14.12)
CIE-LCHlch(15.18, 17.32, 305.38°)
OKLaboklab(27.27% 0.0215 -0.0392)
OKLCHoklch(27.27% 0.045 298.7)
XYZxyz(2.2904, 1.9418, 4.2563)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A223A #323A22
analogous
#22263A #2A223A #36223A
triadic
#2A223A #3A2A22 #223A2A
tetradic
#2A223A #3A2226 #323A22 #223A36
square
#2A223A #3A2226 #323A22 #223A36
split-complementary
#2A223A #3A3622 #263A22
monochromatic
#0E0B13 #0E0B13 #2A223A #463961 #624F87

Accessibility & contrast

On white

15.13
#2A223A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2A223A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A223A
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A223A#FFFFFF#000000##FFFFFF
##2A223A1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C263B
Deuteranopia (green-blind)
#1D2639
Tritanopia (blue-blind)
#27262B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a223a;
/* rgb */ color: rgb(42, 34, 58);
/* oklch */ color: oklch(27.3% 0.045 298.7);
Tailwind
colors: {
  custom: {
    50: '#645d70',
    500: '#2a223a',
    950: '#000000',
  },
}
SCSS
$custom: #2a223a;
$custom-light: #645d70;
$custom-dark: #000000;
JSON
{
  "hex": "#2a223a",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 58
  },
  "hsl": {
    "h": 260,
    "s": 26.087,
    "l": 18.039
  },
  "oklch": {
    "l": 0.27273,
    "c": 0.0447,
    "h": 298.7
  },
  "luminance": 0.01942
}

Semantic roles & 50–950 ramp

primary
#2A223A
secondary
#616D4B
accent
#C265A3
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#050407
muted
#7A797A

Preview Lab

Preview with #2A223A

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

Preview Lab → · Contrast checker → · Palette generator →

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