#2C1759#2C1759

#2C1759 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.112 H 292.1°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#2C1759
RGBrgb(44, 23, 89)
HSLhsl(259, 59%, 22%)
HSVhsv(259, 74%, 35%)
CMYKcmyk(50.6%, 74.2%, 0%, 65.1%)
CIE-LABlab(14.79, 27.87, -36.07)
CIE-LCHlch(14.79, 45.58, 307.69°)
OKLaboklab(27.76% 0.042 -0.1033)
OKLCHoklch(27.76% 0.112 292.1)
XYZxyz(3.1478, 1.8694, 9.6442)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1759 #445917
analogous
#172359 #2C1759 #4D1759
triadic
#2C1759 #592C17 #17592C
tetradic
#2C1759 #591723 #445917 #17594D
square
#2C1759 #591723 #445917 #17594D
split-complementary
#2C1759 #594D17 #235917
monochromatic
#0C0618 #140A28 #2C1759 #44248A #5C30BA

Accessibility & contrast

On white

15.28
#2C1759 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2C1759 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1759
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1759#FFFFFF#000000##FFFFFF
##2C17591.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265B
Deuteranopia (green-blind)
#002458
Tritanopia (blue-blind)
#1E2736
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c1759;
/* rgb */ color: rgb(44, 23, 89);
/* oklch */ color: oklch(27.8% 0.112 292.1);
Tailwind
colors: {
  custom: {
    50: '#6a5688',
    500: '#2c1759',
    950: '#000000',
  },
}
SCSS
$custom: #2c1759;
$custom-light: #6a5688;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1759",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 89
  },
  "hsl": {
    "h": 259.091,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27761,
    "c": 0.11156,
    "h": 292.1
  },
  "luminance": 0.0187
}

Semantic roles & 50–950 ramp

primary
#2C1759
secondary
#75903C
accent
#E246B0
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2C1759

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

Preview Lab → · Contrast checker → · Palette generator →

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