#2A223C#2A223C

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

Color values

HEX#2A223C
RGBrgb(42, 34, 60)
HSLhsl(258, 28%, 18%)
HSVhsv(258, 43%, 24%)
CMYKcmyk(30%, 43.3%, 0%, 76.5%)
CIE-LABlab(15.29, 10.64, -15.35)
CIE-LCHlch(15.29, 18.68, 304.71°)
OKLaboklab(27.39% 0.0221 -0.0427)
OKLCHoklch(27.39% 0.048 297.3)
XYZxyz(2.3423, 1.9625, 4.5295)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A223C #343C22
analogous
#22273C #2A223C #37223C
triadic
#2A223C #3C2A22 #223C2A
tetradic
#2A223C #3C2227 #343C22 #223C37
square
#2A223C #3C2227 #343C22 #223C37
split-complementary
#2A223C #3C3722 #273C22
monochromatic
#0E0B14 #0F0C15 #2A223C #453863 #614E8A

Accessibility & contrast

On white

15.08
#2A223C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A223C
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A223C#FFFFFF#000000##FFFFFF
##2A223C1.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B263D
Deuteranopia (green-blind)
#1D263B
Tritanopia (blue-blind)
#26262C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a223c;
/* rgb */ color: rgb(42, 34, 60);
/* oklch */ color: oklch(27.4% 0.048 297.3);
Tailwind
colors: {
  custom: {
    50: '#645d72',
    500: '#2a223c',
    950: '#000000',
  },
}
SCSS
$custom: #2a223c;
$custom-light: #645d72;
$custom-dark: #000000;
JSON
{
  "hex": "#2a223c",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 60
  },
  "hsl": {
    "h": 258.462,
    "s": 27.66,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27394,
    "c": 0.04809,
    "h": 297.3
  },
  "luminance": 0.01963
}

Semantic roles & 50–950 ramp

primary
#2A223C
secondary
#646F4B
accent
#C464A6
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#050407
muted
#7A797A

Preview Lab

Preview with #2A223C

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

Preview Lab → · Contrast checker → · Palette generator →

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