#2C1146#2C1146

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

Color values

HEX#2C1146
RGBrgb(44, 17, 70)
HSLhsl(271, 61%, 17%)
HSVhsv(271, 76%, 27%)
CMYKcmyk(37.1%, 75.7%, 0%, 72.5%)
CIE-LABlab(11.81, 25.66, -27.88)
CIE-LCHlch(11.81, 37.89, 312.62°)
OKLaboklab(25.11% 0.0526 -0.0792)
OKLCHoklch(25.11% 0.095 303.6)
XYZxyz(2.3444, 1.3786, 5.9357)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1146 #2B4611
analogous
#111146 #2C1146 #461146
triadic
#2C1146 #462C11 #11462C
tetradic
#2C1146 #461111 #2B4611 #114646
square
#2C1146 #461111 #2B4611 #114646
split-complementary
#2C1146 #464611 #114611
monochromatic
#0F0619 #0F0619 #2C1146 #4B1D77 #6A29A8

Accessibility & contrast

On white

16.46
#2C1146 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1146
16.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1146#FFFFFF#000000##FFFFFF
##2C11461.0016.461.2816.46
#FFFFFF16.461.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F48
Deuteranopia (green-blind)
#001F45
Tritanopia (blue-blind)
#271D29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2c1146;
/* rgb */ color: rgb(44, 17, 70);
/* oklch */ color: oklch(25.1% 0.095 303.6);
Tailwind
colors: {
  custom: {
    50: '#68517a',
    500: '#2c1146',
    950: '#000000',
  },
}
SCSS
$custom: #2c1146;
$custom-light: #68517a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1146",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 70
  },
  "hsl": {
    "h": 270.566,
    "s": 60.92,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25105,
    "c": 0.09508,
    "h": 303.6
  },
  "luminance": 0.01379
}

Semantic roles & 50–950 ramp

primary
#2C1146
secondary
#598033
accent
#E44492
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2C1146

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

Preview Lab → · Contrast checker → · Palette generator →

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