#2C1047#2C1047

#2C1047 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.098 H 303.3°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#2C1047
RGBrgb(44, 16, 71)
HSLhsl(271, 63%, 17%)
HSVhsv(271, 77%, 28%)
CMYKcmyk(38%, 77.5%, 0%, 72.2%)
CIE-LABlab(11.70, 26.51, -28.77)
CIE-LCHlch(11.70, 39.12, 312.66°)
OKLaboklab(25.05% 0.0537 -0.0818)
OKLCHoklch(25.05% 0.098 303.3)
XYZxyz(2.3611, 1.3610, 6.0983)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1047 #2B4710
analogous
#101047 #2C1047 #471047
triadic
#2C1047 #472C10 #10472C
tetradic
#2C1047 #471010 #2B4710 #104747
square
#2C1047 #471010 #2B4710 #104747
split-complementary
#2C1047 #474710 #104710
monochromatic
#0F0619 #0F0619 #2C1047 #4B1B79 #6A27AB

Accessibility & contrast

On white

16.51
#2C1047 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2C1047 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1047
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1047#FFFFFF#000000##FFFFFF
##2C10471.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E49
Deuteranopia (green-blind)
#001F46
Tritanopia (blue-blind)
#271D2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2c1047;
/* rgb */ color: rgb(44, 16, 71);
/* oklch */ color: oklch(25.0% 0.098 303.3);
Tailwind
colors: {
  custom: {
    50: '#68517b',
    500: '#2c1047',
    950: '#000000',
  },
}
SCSS
$custom: #2c1047;
$custom-light: #68517b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1047",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 71
  },
  "hsl": {
    "h": 270.545,
    "s": 63.218,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25047,
    "c": 0.09787,
    "h": 303.3
  },
  "luminance": 0.01361
}

Semantic roles & 50–950 ramp

primary
#2C1047
secondary
#598132
accent
#E64292
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2C1047

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

Preview Lab → · Contrast checker → · Palette generator →

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