#2C1652#2C1652

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

Color values

HEX#2C1652
RGBrgb(44, 22, 82)
HSLhsl(262, 58%, 20%)
HSVhsv(262, 73%, 32%)
CMYKcmyk(46.3%, 73.2%, 0%, 67.8%)
CIE-LABlab(13.93, 26.28, -32.72)
CIE-LCHlch(13.93, 41.97, 308.77°)
OKLaboklab(26.95% 0.0444 -0.0935)
OKLCHoklch(26.95% 0.104 295.4)
XYZxyz(2.8482, 1.7184, 8.1626)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1652 #3C5216
analogous
#161E52 #2C1652 #4A1652
triadic
#2C1652 #522C16 #16522C
tetradic
#2C1652 #52161E #3C5216 #16524A
square
#2C1652 #52161E #3C5216 #16524A
split-complementary
#2C1652 #524A16 #1E5216
monochromatic
#0D0618 #120922 #2C1652 #462382 #6030B3

Accessibility & contrast

On white

15.63
#2C1652 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1652
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1652#FFFFFF#000000##FFFFFF
##2C16521.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#222432
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c1652;
/* rgb */ color: rgb(44, 22, 82);
/* oklch */ color: oklch(27.0% 0.103 295.4);
Tailwind
colors: {
  custom: {
    50: '#695583',
    500: '#2c1652',
    950: '#000000',
  },
}
SCSS
$custom: #2c1652;
$custom-light: #695583;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1652",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 82
  },
  "hsl": {
    "h": 262,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26953,
    "c": 0.1035,
    "h": 295.4
  },
  "luminance": 0.01718
}

Semantic roles & 50–950 ramp

primary
#2C1652
secondary
#6C893A
accent
#E147A8
background
#F6F5F8
surface
#EBE8EF
border
#C6C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2C1652

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

Preview Lab → · Contrast checker → · Palette generator →

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