#2C1D68#2C1D68

#2C1D68 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.124 H 285.4°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#2C1D68
RGBrgb(44, 29, 104)
HSLhsl(252, 56%, 26%)
HSVhsv(252, 72%, 41%)
CMYKcmyk(57.7%, 72.1%, 0%, 59.2%)
CIE-LABlab(17.52, 29.07, -41.56)
CIE-LCHlch(17.52, 50.72, 304.97°)
OKLaboklab(30.15% 0.033 -0.1195)
OKLCHoklch(30.15% 0.124 285.4)
XYZxyz(3.9760, 2.4135, 13.3504)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D68 #59681D
analogous
#1D3368 #2C1D68 #511D68
triadic
#2C1D68 #682C1D #1D682C
tetradic
#2C1D68 #681D33 #59681D #1D6851
square
#2C1D68 #681D33 #59681D #1D6851
split-complementary
#2C1D68 #68511D #33681D
monochromatic
#0A0718 #181038 #2C1D68 #402A98 #5538C7

Accessibility & contrast

On white

14.16
#2C1D68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2C1D68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1D68
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D68#FFFFFF#000000##FFFFFF
##2C1D681.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002967
Tritanopia (blue-blind)
#123040
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c1d68;
/* rgb */ color: rgb(44, 29, 104);
/* oklch */ color: oklch(30.2% 0.124 285.4);
Tailwind
colors: {
  custom: {
    50: '#6c5a94',
    500: '#2c1d68',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d68;
$custom-light: #6c5a94;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d68",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 104
  },
  "hsl": {
    "h": 252,
    "s": 56.391,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30155,
    "c": 0.12393,
    "h": 285.4
  },
  "luminance": 0.02414
}

Semantic roles & 50–950 ramp

primary
#2C1D68
secondary
#8B9D44
accent
#E048C1
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2C1D68

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

Preview Lab → · Contrast checker → · Palette generator →

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