#2C1745#2C1745

#2C1745 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.0% C 0.084 H 301.9°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#2C1745
RGBrgb(44, 23, 69)
HSLhsl(267, 50%, 18%)
HSVhsv(267, 67%, 27%)
CMYKcmyk(36.2%, 66.7%, 0%, 72.9%)
CIE-LABlab(13.10, 21.66, -25.12)
CIE-LCHlch(13.10, 33.17, 310.78°)
OKLaboklab(26.01% 0.0443 -0.0711)
OKLCHoklch(26.01% 0.084 301.9)
XYZxyz(2.4190, 1.5779, 5.8062)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1745 #304517
analogous
#171945 #2C1745 #431745
triadic
#2C1745 #452C17 #17452C
tetradic
#2C1745 #451719 #304517 #174543
square
#2C1745 #451719 #304517 #174543
split-complementary
#2C1745 #454317 #194517
monochromatic
#0F0817 #0F0817 #2C1745 #492673 #6736A1

Accessibility & contrast

On white

15.96
#2C1745 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2C1745 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1745
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1745#FFFFFF#000000##FFFFFF
##2C17451.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022146
Deuteranopia (green-blind)
#0A2244
Tritanopia (blue-blind)
#27202B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c1745;
/* rgb */ color: rgb(44, 23, 69);
/* oklch */ color: oklch(26.0% 0.084 301.9);
Tailwind
colors: {
  custom: {
    50: '#675579',
    500: '#2c1745',
    950: '#000000',
  },
}
SCSS
$custom: #2c1745;
$custom-light: #675579;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1745",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 69
  },
  "hsl": {
    "h": 267.391,
    "s": 50,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26006,
    "c": 0.0838,
    "h": 301.9
  },
  "luminance": 0.01578
}

Semantic roles & 50–950 ramp

primary
#2C1745
secondary
#5F7C3C
accent
#DA4E9A
background
#F6F5F7
surface
#EBE8ED
border
#C6C4C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2C1745

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

Preview Lab → · Contrast checker → · Palette generator →

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