#2C2156#2C2156

#2C2156 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.3% C 0.092 H 289.0°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#2C2156
RGBrgb(44, 33, 86)
HSLhsl(252, 45%, 23%)
HSVhsv(252, 62%, 34%)
CMYKcmyk(48.8%, 61.6%, 0%, 66.3%)
CIE-LABlab(16.96, 20.40, -30.52)
CIE-LCHlch(16.96, 36.71, 303.75°)
OKLaboklab(29.27% 0.0299 -0.087)
OKLCHoklch(29.27% 0.092 289)
XYZxyz(3.2618, 2.2949, 9.0734)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2156 #4B5621
analogous
#213056 #2C2156 #462156
triadic
#2C2156 #562C21 #21562C
tetradic
#2C2156 #562130 #4B5621 #215646
square
#2C2156 #562130 #4B5621 #215646
split-complementary
#2C2156 #564621 #305621
monochromatic
#0B0816 #15102A #2C2156 #433282 #5943AE

Accessibility & contrast

On white

14.39
#2C2156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2C2156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2156
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2156#FFFFFF#000000##FFFFFF
##2C21561.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032B58
Deuteranopia (green-blind)
#042955
Tritanopia (blue-blind)
#1F2D38
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c2156;
/* rgb */ color: rgb(44, 33, 86);
/* oklch */ color: oklch(29.3% 0.092 289.0);
Tailwind
colors: {
  custom: {
    50: '#695c86',
    500: '#2c2156',
    950: '#000000',
  },
}
SCSS
$custom: #2c2156;
$custom-light: #695c86;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2156",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 86
  },
  "hsl": {
    "h": 252.453,
    "s": 44.538,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29265,
    "c": 0.09202,
    "h": 289
  },
  "luminance": 0.02295
}

Semantic roles & 50–950 ramp

primary
#2C2156
secondary
#7D8A49
accent
#D454BA
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #2C2156

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

Preview Lab → · Contrast checker → · Palette generator →

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