#2C1245#2C1245

#2C1245 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.092 H 303.9°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#2C1245
RGBrgb(44, 18, 69)
HSLhsl(271, 59%, 17%)
HSVhsv(271, 74%, 27%)
CMYKcmyk(36.2%, 73.9%, 0%, 72.9%)
CIE-LABlab(11.94, 24.78, -26.97)
CIE-LCHlch(11.94, 36.63, 312.58°)
OKLaboklab(25.17% 0.0514 -0.0766)
OKLCHoklch(25.17% 0.092 303.9)
XYZxyz(2.3289, 1.3978, 5.7762)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1245 #2B4512
analogous
#121245 #2C1245 #451245
triadic
#2C1245 #452C12 #12452C
tetradic
#2C1245 #451212 #2B4512 #124545
square
#2C1245 #451212 #2B4512 #124545
split-complementary
#2C1245 #454512 #124512
monochromatic
#0F0618 #0F0618 #2C1245 #4B1F76 #6A2BA6

Accessibility & contrast

On white

16.41
#2C1245 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1245
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1245#FFFFFF#000000##FFFFFF
##2C12451.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1245;
/* rgb */ color: rgb(44, 18, 69);
/* oklch */ color: oklch(25.2% 0.092 303.9);
Tailwind
colors: {
  custom: {
    50: '#685279',
    500: '#2c1245',
    950: '#000000',
  },
}
SCSS
$custom: #2c1245;
$custom-light: #685279;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1245",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 69
  },
  "hsl": {
    "h": 270.588,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25171,
    "c": 0.0922,
    "h": 303.9
  },
  "luminance": 0.01398
}

Semantic roles & 50–950 ramp

primary
#2C1245
secondary
#597E35
accent
#E24692
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2C1245

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

Preview Lab → · Contrast checker → · Palette generator →

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