#2C1145#2C1145

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

Color values

HEX#2C1145
RGBrgb(44, 17, 69)
HSLhsl(271, 60%, 17%)
HSVhsv(271, 75%, 27%)
CMYKcmyk(36.2%, 75.4%, 0%, 72.9%)
CIE-LABlab(11.73, 25.37, -27.32)
CIE-LCHlch(11.73, 37.28, 312.89°)
OKLaboklab(25.02% 0.0527 -0.0776)
OKLCHoklch(25.02% 0.094 304.2)
XYZxyz(2.3131, 1.3660, 5.7709)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1145 #2A4511
analogous
#121145 #2C1145 #451144
triadic
#2C1145 #452C11 #11452C
tetradic
#2C1145 #451211 #2A4511 #114445
square
#2C1145 #451211 #2A4511 #114445
split-complementary
#2C1145 #444511 #114512
monochromatic
#100619 #100619 #2C1145 #4B1D76 #6B29A7

Accessibility & contrast

On white

16.49
#2C1145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1145
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1145#FFFFFF#000000##FFFFFF
##2C11451.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E47
Deuteranopia (green-blind)
#021F44
Tritanopia (blue-blind)
#271D29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2c1145;
/* rgb */ color: rgb(44, 17, 69);
/* oklch */ color: oklch(25.0% 0.094 304.2);
Tailwind
colors: {
  custom: {
    50: '#685179',
    500: '#2c1145',
    950: '#000000',
  },
}
SCSS
$custom: #2c1145;
$custom-light: #685179;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1145",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 69
  },
  "hsl": {
    "h": 271.154,
    "s": 60.465,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25018,
    "c": 0.09378,
    "h": 304.2
  },
  "luminance": 0.01366
}

Semantic roles & 50–950 ramp

primary
#2C1145
secondary
#577F33
accent
#E44491
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2C1145

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

Preview Lab → · Contrast checker → · Palette generator →

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