#2C1647#2C1647

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

Color values

HEX#2C1647
RGBrgb(44, 22, 71)
HSLhsl(267, 53%, 18%)
HSVhsv(267, 69%, 28%)
CMYKcmyk(38%, 69%, 0%, 72.2%)
CIE-LABlab(13.01, 22.91, -26.64)
CIE-LCHlch(13.01, 35.14, 310.69°)
OKLaboklab(25.99% 0.0457 -0.0756)
OKLCHoklch(25.99% 0.088 301.1)
XYZxyz(2.4627, 1.5642, 6.1322)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1647 #314716
analogous
#161847 #2C1647 #441647
triadic
#2C1647 #472C16 #16472C
tetradic
#2C1647 #471618 #314716 #164744
square
#2C1647 #471618 #314716 #164744
split-complementary
#2C1647 #474416 #184716
monochromatic
#0E0717 #0F0818 #2C1647 #492476 #6633A4

Accessibility & contrast

On white

16.00
#2C1647 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2C1647 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1647
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1647#FFFFFF#000000##FFFFFF
##2C16471.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002149
Deuteranopia (green-blind)
#062146
Tritanopia (blue-blind)
#26202C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c1647;
/* rgb */ color: rgb(44, 22, 71);
/* oklch */ color: oklch(26.0% 0.088 301.1);
Tailwind
colors: {
  custom: {
    50: '#68547a',
    500: '#2c1647',
    950: '#000000',
  },
}
SCSS
$custom: #2c1647;
$custom-light: #68547a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1647",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 71
  },
  "hsl": {
    "h": 266.939,
    "s": 52.688,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25994,
    "c": 0.08834,
    "h": 301.1
  },
  "luminance": 0.01564
}

Semantic roles & 50–950 ramp

primary
#2C1647
secondary
#607E3A
accent
#DC4C9B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2C1647

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

Preview Lab → · Contrast checker → · Palette generator →

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