#2C2452#2C2452

#2C2452 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.6% C 0.081 H 288.4°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#2C2452
RGBrgb(44, 36, 82)
HSLhsl(250, 39%, 23%)
HSVhsv(250, 56%, 32%)
CMYKcmyk(46.3%, 56.1%, 0%, 67.8%)
CIE-LABlab(17.49, 16.97, -26.98)
CIE-LCHlch(17.49, 31.87, 302.16°)
OKLaboklab(29.56% 0.0256 -0.0766)
OKLCHoklch(29.56% 0.081 288.4)
XYZxyz(3.1921, 2.4063, 8.2773)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2452 #4A5224
analogous
#243352 #2C2452 #432452
triadic
#2C2452 #522C24 #24522C
tetradic
#2C2452 #522433 #4A5224 #245243
square
#2C2452 #522433 #4A5224 #245243
split-complementary
#2C2452 #524324 #335224
monochromatic
#0B0915 #151127 #2C2452 #43377D #5A49A7

Accessibility & contrast

On white

14.18
#2C2452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2C2452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2452
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2452#FFFFFF#000000##FFFFFF
##2C24521.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102C54
Deuteranopia (green-blind)
#102A51
Tritanopia (blue-blind)
#212E37
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c2452;
/* rgb */ color: rgb(44, 36, 82);
/* oklch */ color: oklch(29.6% 0.081 288.4);
Tailwind
colors: {
  custom: {
    50: '#685e83',
    500: '#2c2452',
    950: '#000000',
  },
}
SCSS
$custom: #2c2452;
$custom-light: #685e83;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2452",
  "rgb": {
    "r": 44,
    "g": 36,
    "b": 82
  },
  "hsl": {
    "h": 250.435,
    "s": 38.983,
    "l": 23.137
  },
  "oklch": {
    "l": 0.2956,
    "c": 0.08076,
    "h": 288.4
  },
  "luminance": 0.02406
}

Semantic roles & 50–950 ramp

primary
#2C2452
secondary
#7C864C
accent
#CF59BA
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2C2452

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

Preview Lab → · Contrast checker → · Palette generator →

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