#2C1051#2C1051

#2C1051 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.111 H 297.8°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#2C1051
RGBrgb(44, 16, 81)
HSLhsl(266, 67%, 19%)
HSVhsv(266, 80%, 32%)
CMYKcmyk(45.7%, 80.2%, 0%, 68.2%)
CIE-LABlab(12.61, 29.41, -34.20)
CIE-LCHlch(12.61, 45.11, 310.70°)
OKLaboklab(25.98% 0.0515 -0.0978)
OKLCHoklch(25.98% 0.111 297.8)
XYZxyz(2.7088, 1.5001, 7.9298)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1051 #355110
analogous
#101551 #2C1051 #4D1051
triadic
#2C1051 #512C10 #10512C
tetradic
#2C1051 #511015 #355110 #10514D
square
#2C1051 #511015 #355110 #10514D
split-complementary
#2C1051 #514D10 #155110
monochromatic
#0E051A #10061E #2C1051 #481A84 #6424B7

Accessibility & contrast

On white

16.15
#2C1051 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1051
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1051#FFFFFF#000000##FFFFFF
##2C10511.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#002050
Tritanopia (blue-blind)
#23212F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2c1051;
/* rgb */ color: rgb(44, 16, 81);
/* oklch */ color: oklch(26.0% 0.111 297.8);
Tailwind
colors: {
  custom: {
    50: '#6a5182',
    500: '#2c1051',
    950: '#000000',
  },
}
SCSS
$custom: #2c1051;
$custom-light: #6a5182;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1051",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 81
  },
  "hsl": {
    "h": 265.846,
    "s": 67.01,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25981,
    "c": 0.11051,
    "h": 297.8
  },
  "luminance": 0.015
}

Semantic roles & 50–950 ramp

primary
#2C1051
secondary
#658B32
accent
#EA3EA0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C1051

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

Preview Lab → · Contrast checker → · Palette generator →

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