#2C1345#2C1345

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

Color values

HEX#2C1345
RGBrgb(44, 19, 69)
HSLhsl(270, 57%, 17%)
HSVhsv(270, 72%, 27%)
CMYKcmyk(36.2%, 72.5%, 0%, 72.9%)
CIE-LABlab(12.16, 24.18, -26.62)
CIE-LCHlch(12.16, 35.96, 312.25°)
OKLaboklab(25.33% 0.05 -0.0755)
OKLCHoklch(25.33% 0.091 303.5)
XYZxyz(2.3455, 1.4309, 5.7817)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1345 #2C4513
analogous
#131345 #2C1345 #451345
triadic
#2C1345 #452C13 #13452C
tetradic
#2C1345 #451313 #2C4513 #134545
square
#2C1345 #451313 #2C4513 #134545
split-complementary
#2C1345 #454513 #134513
monochromatic
#0F0718 #0F0718 #2C1345 #4B2075 #692DA5

Accessibility & contrast

On white

16.33
#2C1345 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2C1345 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1345
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1345#FFFFFF#000000##FFFFFF
##2C13451.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F47
Deuteranopia (green-blind)
#042044
Tritanopia (blue-blind)
#271E2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2c1345;
/* rgb */ color: rgb(44, 19, 69);
/* oklch */ color: oklch(25.3% 0.091 303.5);
Tailwind
colors: {
  custom: {
    50: '#685279',
    500: '#2c1345',
    950: '#000000',
  },
}
SCSS
$custom: #2c1345;
$custom-light: #685279;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1345",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 69
  },
  "hsl": {
    "h": 270,
    "s": 56.818,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25329,
    "c": 0.09059,
    "h": 303.5
  },
  "luminance": 0.01431
}

Semantic roles & 50–950 ramp

primary
#2C1345
secondary
#5A7E36
accent
#E04894
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2C1345

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

Preview Lab → · Contrast checker → · Palette generator →

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