#2C1244#2C1244

#2C1244 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.091 H 304.5°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#2C1244
RGBrgb(44, 18, 68)
HSLhsl(271, 58%, 17%)
HSVhsv(271, 74%, 27%)
CMYKcmyk(35.3%, 73.5%, 0%, 73.3%)
CIE-LABlab(11.86, 24.49, -26.40)
CIE-LCHlch(11.86, 36.02, 312.85°)
OKLaboklab(25.09% 0.0515 -0.0749)
OKLCHoklch(25.09% 0.091 304.5)
XYZxyz(2.2982, 1.3855, 5.6141)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1244 #2A4412
analogous
#131244 #2C1244 #441243
triadic
#2C1244 #442C12 #12442C
tetradic
#2C1244 #441312 #2A4412 #124344
square
#2C1244 #441312 #2A4412 #124344
split-complementary
#2C1244 #434412 #124413
monochromatic
#100618 #100618 #2C1244 #4B1F74 #6B2CA5

Accessibility & contrast

On white

16.44
#2C1244 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2C1244 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1244
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1244#FFFFFF#000000##FFFFFF
##2C12441.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F46
Deuteranopia (green-blind)
#041F43
Tritanopia (blue-blind)
#281D29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2c1244;
/* rgb */ color: rgb(44, 18, 68);
/* oklch */ color: oklch(25.1% 0.091 304.5);
Tailwind
colors: {
  custom: {
    50: '#685278',
    500: '#2c1244',
    950: '#000000',
  },
}
SCSS
$custom: #2c1244;
$custom-light: #685278;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1244",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 68
  },
  "hsl": {
    "h": 271.2,
    "s": 58.14,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25085,
    "c": 0.09089,
    "h": 304.5
  },
  "luminance": 0.01385
}

Semantic roles & 50–950 ramp

primary
#2C1244
secondary
#577D35
accent
#E14691
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2C1244

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

Preview Lab → · Contrast checker → · Palette generator →

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