#2C2145#2C2145

#2C2145 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.0% C 0.065 H 296.0°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#2C2145
RGBrgb(44, 33, 69)
HSLhsl(258, 35%, 20%)
HSVhsv(258, 52%, 27%)
CMYKcmyk(36.2%, 52.2%, 0%, 72.9%)
CIE-LABlab(15.76, 14.83, -20.86)
CIE-LCHlch(15.76, 25.59, 305.42°)
OKLaboklab(27.98% 0.0286 -0.0587)
OKLCHoklch(27.98% 0.065 296)
XYZxyz(2.6565, 2.0528, 5.8853)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2145 #3A4521
analogous
#212845 #2C2145 #3E2145
triadic
#2C2145 #452C21 #21452C
tetradic
#2C2145 #452128 #3A4521 #21453E
square
#2C2145 #452128 #3A4521 #21453E
split-complementary
#2C2145 #453E21 #284521
monochromatic
#0D0A15 #120D1C #2C2145 #46356E #614998

Accessibility & contrast

On white

14.89
#2C2145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2C2145 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2145
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2145#FFFFFF#000000##FFFFFF
##2C21451.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152746
Deuteranopia (green-blind)
#172744
Tritanopia (blue-blind)
#26282F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2c2145;
/* rgb */ color: rgb(44, 33, 69);
/* oklch */ color: oklch(28.0% 0.065 296.0);
Tailwind
colors: {
  custom: {
    50: '#665c79',
    500: '#2c2145',
    950: '#000000',
  },
}
SCSS
$custom: #2c2145;
$custom-light: #665c79;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2145",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 69
  },
  "hsl": {
    "h": 258.333,
    "s": 35.294,
    "l": 20
  },
  "oklch": {
    "l": 0.27982,
    "c": 0.06527,
    "h": 296
  },
  "luminance": 0.02053
}

Semantic roles & 50–950 ramp

primary
#2C2145
secondary
#6A7949
accent
#CB5CA9
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060409
muted
#7A797B

Preview Lab

Preview with #2C2145

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

Preview Lab → · Contrast checker → · Palette generator →

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