#2C1054#2C1054

#2C1054 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.3% C 0.114 H 296.3°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#2C1054
RGBrgb(44, 16, 84)
HSLhsl(265, 68%, 20%)
HSVhsv(265, 81%, 33%)
CMYKcmyk(47.6%, 81%, 0%, 67.1%)
CIE-LABlab(12.90, 30.30, -35.77)
CIE-LCHlch(12.90, 46.88, 310.26°)
OKLaboklab(26.27% 0.0507 -0.1024)
OKLCHoklch(26.27% 0.114 296.3)
XYZxyz(2.8238, 1.5461, 8.5354)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1054 #385410
analogous
#101654 #2C1054 #4E1054
triadic
#2C1054 #542C10 #10542C
tetradic
#2C1054 #541016 #385410 #10544E
square
#2C1054 #541016 #385410 #10544E
split-complementary
#2C1054 #544E10 #165410
monochromatic
#0D051A #110621 #2C1054 #471A87 #6224BB

Accessibility & contrast

On white

16.04
#2C1054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2C1054 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1054
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1054#FFFFFF#000000##FFFFFF
##2C10541.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#002053
Tritanopia (blue-blind)
#212231
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2c1054;
/* rgb */ color: rgb(44, 16, 84);
/* oklch */ color: oklch(26.3% 0.114 296.3);
Tailwind
colors: {
  custom: {
    50: '#6a5185',
    500: '#2c1054',
    950: '#000000',
  },
}
SCSS
$custom: #2c1054;
$custom-light: #6a5185;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1054",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 84
  },
  "hsl": {
    "h": 264.706,
    "s": 68,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26274,
    "c": 0.11426,
    "h": 296.3
  },
  "luminance": 0.01546
}

Semantic roles & 50–950 ramp

primary
#2C1054
secondary
#688E32
accent
#EB3DA3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1054

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

Preview Lab → · Contrast checker → · Palette generator →

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