#2C2160#2C2160

#2C2160 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.1% C 0.107 H 286.1°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#2C2160
RGBrgb(44, 33, 96)
HSLhsl(250, 49%, 25%)
HSVhsv(250, 66%, 38%)
CMYKcmyk(54.2%, 65.6%, 0%, 62.4%)
CIE-LABlab(17.77, 23.79, -35.89)
CIE-LCHlch(17.77, 43.06, 303.54°)
OKLaboklab(30.11% 0.0296 -0.1028)
OKLCHoklch(30.11% 0.107 286.1)
XYZxyz(3.6933, 2.4675, 11.3457)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2160 #556021
analogous
#213560 #2C2160 #4B2160
triadic
#2C2160 #602C21 #21602C
tetradic
#2C2160 #602135 #556021 #21604B
square
#2C2160 #602135 #556021 #21604B
split-complementary
#2C2160 #604B21 #356021
monochromatic
#0A0817 #171132 #2C2160 #41318E #5640BB

Accessibility & contrast

On white

14.06
#2C2160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2C2160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2160
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2160#FFFFFF#000000##FFFFFF
##2C21601.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D62
Deuteranopia (green-blind)
#002A5F
Tritanopia (blue-blind)
#19303D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c2160;
/* rgb */ color: rgb(44, 33, 96);
/* oklch */ color: oklch(30.1% 0.107 286.1);
Tailwind
colors: {
  custom: {
    50: '#6a5d8e',
    500: '#2c2160',
    950: '#000000',
  },
}
SCSS
$custom: #2c2160;
$custom-light: #6a5d8e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2160",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 96
  },
  "hsl": {
    "h": 250.476,
    "s": 48.837,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30113,
    "c": 0.10697,
    "h": 286.1
  },
  "luminance": 0.02468
}

Semantic roles & 50–950 ramp

primary
#2C2160
secondary
#879449
accent
#D84FC0
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2C2160

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

Preview Lab → · Contrast checker → · Palette generator →

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