#2C1259#2C1259

#2C1259 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.118 H 293.6°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#2C1259
RGBrgb(44, 18, 89)
HSLhsl(262, 66%, 21%)
HSVhsv(262, 80%, 35%)
CMYKcmyk(50.6%, 79.8%, 0%, 65.1%)
CIE-LABlab(13.76, 30.73, -37.74)
CIE-LCHlch(13.76, 48.67, 309.15°)
OKLaboklab(27.03% 0.0473 -0.1082)
OKLCHoklch(27.03% 0.118 293.6)
XYZxyz(3.0577, 1.6893, 9.6142)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1259 #3F5912
analogous
#121B59 #2C1259 #4F1259
triadic
#2C1259 #592C12 #12592C
tetradic
#2C1259 #59121B #3F5912 #12594F
square
#2C1259 #59121B #3F5912 #12594F
split-complementary
#2C1259 #594F12 #1B5912
monochromatic
#0D0519 #130826 #2C1259 #451C8C #5E27BF

Accessibility & contrast

On white

15.70
#2C1259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2C1259 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1259
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1259#FFFFFF#000000##FFFFFF
##2C12591.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245B
Deuteranopia (green-blind)
#002258
Tritanopia (blue-blind)
#1E2534
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c1259;
/* rgb */ color: rgb(44, 18, 89);
/* oklch */ color: oklch(27.0% 0.118 293.6);
Tailwind
colors: {
  custom: {
    50: '#6b5389',
    500: '#2c1259',
    950: '#000000',
  },
}
SCSS
$custom: #2c1259;
$custom-light: #6b5389;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1259",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 89
  },
  "hsl": {
    "h": 261.972,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27035,
    "c": 0.11809,
    "h": 293.6
  },
  "luminance": 0.01689
}

Semantic roles & 50–950 ramp

primary
#2C1259
secondary
#709235
accent
#E93FAB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1259

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

Preview Lab → · Contrast checker → · Palette generator →

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