#2C2238#2C2238

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

Color values

HEX#2C2238
RGBrgb(44, 34, 56)
HSLhsl(267, 24%, 18%)
HSVhsv(267, 39%, 22%)
CMYKcmyk(21.4%, 39.3%, 0%, 78%)
CIE-LABlab(15.30, 10.20, -12.50)
CIE-LCHlch(15.30, 16.14, 309.22°)
OKLaboklab(27.39% 0.0238 -0.0345)
OKLCHoklch(27.39% 0.042 304.6)
XYZxyz(2.3244, 1.9651, 3.9975)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2238 #2E3822
analogous
#222338 #2C2238 #372238
triadic
#2C2238 #382C22 #22382C
tetradic
#2C2238 #382223 #2E3822 #223837
square
#2C2238 #382223 #2E3822 #223837
split-complementary
#2C2238 #383722 #233822
monochromatic
#0F0C13 #0F0C13 #2C2238 #4A395E #685084

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C2238#FFFFFF#000000##FFFFFF
##2C22381.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)
#1D2639
Deuteranopia (green-blind)
#1F2637
Tritanopia (blue-blind)
#2A252A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c2238;
/* rgb */ color: rgb(44, 34, 56);
/* oklch */ color: oklch(27.4% 0.042 304.6);
Tailwind
colors: {
  custom: {
    50: '#655d6e',
    500: '#2c2238',
    950: '#000000',
  },
}
SCSS
$custom: #2c2238;
$custom-light: #655d6e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2238",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 56
  },
  "hsl": {
    "h": 267.273,
    "s": 24.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.27388,
    "c": 0.04193,
    "h": 304.6
  },
  "luminance": 0.01965
}

Semantic roles & 50–950 ramp

primary
#2C2238
secondary
#5C6A4B
accent
#C16798
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#050407
muted
#7A797A

Preview Lab

Preview with #2C2238

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

Preview Lab → · Contrast checker → · Palette generator →

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