#2C2440#2C2440

#2C2440 is a dark, muted violet. Relative luminance 0.022; OKLCH L 28.3% C 0.051 H 296.1°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#2C2440
RGBrgb(44, 36, 64)
HSLhsl(257, 28%, 20%)
HSVhsv(257, 44%, 25%)
CMYKcmyk(31.2%, 43.8%, 0%, 74.9%)
CIE-LABlab(16.34, 11.15, -16.48)
CIE-LCHlch(16.34, 19.89, 304.08°)
OKLaboklab(28.32% 0.0225 -0.0459)
OKLCHoklch(28.32% 0.051 296.1)
XYZxyz(2.5948, 2.1674, 5.1311)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2440 #384024
analogous
#242A40 #2C2440 #3A2440
triadic
#2C2440 #402C24 #24402C
tetradic
#2C2440 #40242A #384024 #24403A
square
#2C2440 #40242A #384024 #24403A
split-complementary
#2C2440 #403A24 #2A4024
monochromatic
#0D0B14 #110E19 #2C2440 #473A67 #62508E

Accessibility & contrast

On white

14.65
#2C2440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C2440
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2440#FFFFFF#000000##FFFFFF
##2C24401.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2941
Deuteranopia (green-blind)
#1E283F
Tritanopia (blue-blind)
#28292F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c2440;
/* rgb */ color: rgb(44, 36, 64);
/* oklch */ color: oklch(28.3% 0.051 296.1);
Tailwind
colors: {
  custom: {
    50: '#665e75',
    500: '#2c2440',
    950: '#000000',
  },
}
SCSS
$custom: #2c2440;
$custom-light: #665e75;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2440",
  "rgb": {
    "r": 44,
    "g": 36,
    "b": 64
  },
  "hsl": {
    "h": 257.143,
    "s": 28,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28322,
    "c": 0.05118,
    "h": 296.1
  },
  "luminance": 0.02167
}

Semantic roles & 50–950 ramp

primary
#2C2440
secondary
#68734D
accent
#C463A9
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #2C2440

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

Preview Lab → · Contrast checker → · Palette generator →

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