#2C1744#2C1744

#2C1744 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 25.9% C 0.082 H 302.5°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#2C1744
RGBrgb(44, 23, 68)
HSLhsl(268, 49%, 18%)
HSVhsv(268, 66%, 27%)
CMYKcmyk(35.3%, 66.2%, 0%, 73.3%)
CIE-LABlab(13.02, 21.37, -24.54)
CIE-LCHlch(13.02, 32.54, 311.05°)
OKLaboklab(25.93% 0.0443 -0.0694)
OKLCHoklch(25.93% 0.082 302.5)
XYZxyz(2.3883, 1.5656, 5.6441)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1744 #2F4417
analogous
#171844 #2C1744 #421744
triadic
#2C1744 #442C17 #17442C
tetradic
#2C1744 #441718 #2F4417 #174442
square
#2C1744 #441718 #2F4417 #174442
split-complementary
#2C1744 #444217 #184417
monochromatic
#0F0817 #0F0817 #2C1744 #4A2672 #67369F

Accessibility & contrast

On white

15.99
#2C1744 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2C1744 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1744
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1744#FFFFFF#000000##FFFFFF
##2C17441.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032145
Deuteranopia (green-blind)
#0B2143
Tritanopia (blue-blind)
#27202A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c1744;
/* rgb */ color: rgb(44, 23, 68);
/* oklch */ color: oklch(25.9% 0.082 302.5);
Tailwind
colors: {
  custom: {
    50: '#675578',
    500: '#2c1744',
    950: '#000000',
  },
}
SCSS
$custom: #2c1744;
$custom-light: #675578;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1744",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 68
  },
  "hsl": {
    "h": 268,
    "s": 49.451,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25926,
    "c": 0.08237,
    "h": 302.5
  },
  "luminance": 0.01566
}

Semantic roles & 50–950 ramp

primary
#2C1744
secondary
#5E7B3C
accent
#D94F99
background
#F6F4F7
surface
#EBE8ED
border
#C6C4C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2C1744

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

Preview Lab → · Contrast checker → · Palette generator →

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