#2C1440#2C1440

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

Color values

HEX#2C1440
RGBrgb(44, 20, 64)
HSLhsl(273, 52%, 16%)
HSVhsv(273, 69%, 25%)
CMYKcmyk(31.2%, 68.8%, 0%, 74.9%)
CIE-LABlab(12.00, 22.12, -23.37)
CIE-LCHlch(12.00, 32.18, 313.43°)
OKLaboklab(25.08% 0.0489 -0.066)
OKLCHoklch(25.08% 0.082 306.5)
XYZxyz(2.2141, 1.4060, 5.0042)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1440 #284014
analogous
#161440 #2C1440 #40143E
triadic
#2C1440 #402C14 #14402C
tetradic
#2C1440 #401614 #284014 #143E40
square
#2C1440 #401614 #284014 #143E40
split-complementary
#2C1440 #3E4014 #144016
monochromatic
#100717 #100717 #2C1440 #4C236F #6C319D

Accessibility & contrast

On white

16.39
#2C1440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1440
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1440#FFFFFF#000000##FFFFFF
##2C14401.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021F41
Deuteranopia (green-blind)
#0C203F
Tritanopia (blue-blind)
#291D27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2c1440;
/* rgb */ color: rgb(44, 20, 64);
/* oklch */ color: oklch(25.1% 0.082 306.5);
Tailwind
colors: {
  custom: {
    50: '#675375',
    500: '#2c1440',
    950: '#000000',
  },
}
SCSS
$custom: #2c1440;
$custom-light: #675375;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1440",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 64
  },
  "hsl": {
    "h": 272.727,
    "s": 52.381,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25084,
    "c": 0.08212,
    "h": 306.5
  },
  "luminance": 0.01406
}

Semantic roles & 50–950 ramp

primary
#2C1440
secondary
#557838
accent
#DC4C8D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2C1440

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

Preview Lab → · Contrast checker → · Palette generator →

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