#2C1056#2C1056

#2C1056 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.117 H 295.4°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#2C1056
RGBrgb(44, 16, 86)
HSLhsl(264, 69%, 20%)
HSVhsv(264, 81%, 34%)
CMYKcmyk(48.8%, 81.4%, 0%, 66.3%)
CIE-LABlab(13.10, 30.89, -36.81)
CIE-LCHlch(13.10, 48.05, 310.00°)
OKLaboklab(26.47% 0.0501 -0.1055)
OKLCHoklch(26.47% 0.117 295.4)
XYZxyz(2.9033, 1.5779, 8.9539)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1056 #3A5610
analogous
#101756 #2C1056 #4F1056
triadic
#2C1056 #562C10 #10562C
tetradic
#2C1056 #561017 #3A5610 #10564F
square
#2C1056 #561017 #3A5610 #10564F
split-complementary
#2C1056 #564F10 #175610
monochromatic
#0D051A #120622 #2C1056 #461A8A #6123BD

Accessibility & contrast

On white

15.96
#2C1056 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2C1056 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1056
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1056#FFFFFF#000000##FFFFFF
##2C10561.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#002155
Tritanopia (blue-blind)
#202332
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c1056;
/* rgb */ color: rgb(44, 16, 86);
/* oklch */ color: oklch(26.5% 0.117 295.4);
Tailwind
colors: {
  custom: {
    50: '#6a5186',
    500: '#2c1056',
    950: '#000000',
  },
}
SCSS
$custom: #2c1056;
$custom-light: #6a5186;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1056",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 86
  },
  "hsl": {
    "h": 264,
    "s": 68.627,
    "l": 20
  },
  "oklch": {
    "l": 0.26473,
    "c": 0.11676,
    "h": 295.4
  },
  "luminance": 0.01578
}

Semantic roles & 50–950 ramp

primary
#2C1056
secondary
#6A8F32
accent
#EB3CA5
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1056

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

Preview Lab → · Contrast checker → · Palette generator →

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