#2C1648#2C1648

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

Color values

HEX#2C1648
RGBrgb(44, 22, 72)
HSLhsl(266, 53%, 18%)
HSVhsv(266, 69%, 28%)
CMYKcmyk(38.9%, 69.4%, 0%, 71.8%)
CIE-LABlab(13.09, 23.21, -27.21)
CIE-LCHlch(13.09, 35.76, 310.46°)
OKLaboklab(26.08% 0.0456 -0.0773)
OKLCHoklch(26.08% 0.09 300.5)
XYZxyz(2.4950, 1.5772, 6.3026)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1648 #324816
analogous
#161948 #2C1648 #451648
triadic
#2C1648 #482C16 #16482C
tetradic
#2C1648 #481619 #324816 #164845
square
#2C1648 #481619 #324816 #164845
split-complementary
#2C1648 #484516 #194816
monochromatic
#0E0717 #0F0819 #2C1648 #492477 #6533A6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C1648#FFFFFF#000000##FFFFFF
##2C16481.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)
#00224A
Deuteranopia (green-blind)
#052147
Tritanopia (blue-blind)
#26212C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c1648;
/* rgb */ color: rgb(44, 22, 72);
/* oklch */ color: oklch(26.1% 0.090 300.5);
Tailwind
colors: {
  custom: {
    50: '#68547b',
    500: '#2c1648',
    950: '#000000',
  },
}
SCSS
$custom: #2c1648;
$custom-light: #68547b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1648",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 72
  },
  "hsl": {
    "h": 266.4,
    "s": 53.191,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26077,
    "c": 0.08973,
    "h": 300.5
  },
  "luminance": 0.01577
}

Semantic roles & 50–950 ramp

primary
#2C1648
secondary
#617F3A
accent
#DD4B9D
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2C1648

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

Preview Lab → · Contrast checker → · Palette generator →

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