#2C1050#2C1050

#2C1050 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.109 H 298.3°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#2C1050
RGBrgb(44, 16, 80)
HSLhsl(266, 67%, 19%)
HSVhsv(266, 80%, 31%)
CMYKcmyk(45%, 80%, 0%, 68.6%)
CIE-LABlab(12.51, 29.12, -33.67)
CIE-LCHlch(12.51, 44.51, 310.86°)
OKLaboklab(25.88% 0.0517 -0.0962)
OKLCHoklch(25.88% 0.109 298.3)
XYZxyz(2.6716, 1.4852, 7.7338)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1050 #345010
analogous
#101450 #2C1050 #4C1050
triadic
#2C1050 #502C10 #10502C
tetradic
#2C1050 #501014 #345010 #10504C
square
#2C1050 #501014 #345010 #10504C
split-complementary
#2C1050 #504C10 #145010
monochromatic
#0E051A #10061D #2C1050 #481A83 #6424B6

Accessibility & contrast

On white

16.19
#2C1050 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2C1050 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1050
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1050#FFFFFF#000000##FFFFFF
##2C10501.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002152
Deuteranopia (green-blind)
#00204F
Tritanopia (blue-blind)
#23202F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2c1050;
/* rgb */ color: rgb(44, 16, 80);
/* oklch */ color: oklch(25.9% 0.109 298.3);
Tailwind
colors: {
  custom: {
    50: '#695182',
    500: '#2c1050',
    950: '#000000',
  },
}
SCSS
$custom: #2c1050;
$custom-light: #695182;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1050",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 80
  },
  "hsl": {
    "h": 266.25,
    "s": 66.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25884,
    "c": 0.10925,
    "h": 298.3
  },
  "luminance": 0.01485
}

Semantic roles & 50–950 ramp

primary
#2C1050
secondary
#638A32
accent
#EA3E9F
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C1050

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

Preview Lab → · Contrast checker → · Palette generator →

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