#2C1052#2C1052

#2C1052 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.112 H 297.3°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#2C1052
RGBrgb(44, 16, 82)
HSLhsl(265, 67%, 19%)
HSVhsv(265, 80%, 32%)
CMYKcmyk(46.3%, 80.5%, 0%, 67.8%)
CIE-LABlab(12.70, 29.71, -34.72)
CIE-LCHlch(12.70, 45.70, 310.55°)
OKLaboklab(26.08% 0.0512 -0.0993)
OKLCHoklch(26.08% 0.112 297.3)
XYZxyz(2.7466, 1.5152, 8.1288)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1052 #365210
analogous
#101552 #2C1052 #4D1052
triadic
#2C1052 #522C10 #10522C
tetradic
#2C1052 #521015 #365210 #10524D
square
#2C1052 #521015 #365210 #10524D
split-complementary
#2C1052 #524D10 #155210
monochromatic
#0E051A #11061F #2C1052 #471A85 #6324B8

Accessibility & contrast

On white

16.12
#2C1052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1052
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1052#FFFFFF#000000##FFFFFF
##2C10521.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#002051
Tritanopia (blue-blind)
#222130
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2c1052;
/* rgb */ color: rgb(44, 16, 82);
/* oklch */ color: oklch(26.1% 0.112 297.3);
Tailwind
colors: {
  custom: {
    50: '#6a5183',
    500: '#2c1052',
    950: '#000000',
  },
}
SCSS
$custom: #2c1052;
$custom-light: #6a5183;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1052",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 82
  },
  "hsl": {
    "h": 265.455,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26078,
    "c": 0.11176,
    "h": 297.3
  },
  "luminance": 0.01515
}

Semantic roles & 50–950 ramp

primary
#2C1052
secondary
#668C32
accent
#EA3EA1
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1052

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

Preview Lab → · Contrast checker → · Palette generator →

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