#2C1468#2C1468

#2C1468 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.135 H 287.8°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#2C1468
RGBrgb(44, 20, 104)
HSLhsl(257, 68%, 24%)
HSVhsv(257, 81%, 41%)
CMYKcmyk(57.7%, 80.8%, 0%, 59.2%)
CIE-LABlab(15.67, 34.26, -44.60)
CIE-LCHlch(15.67, 56.24, 307.53°)
OKLaboklab(28.84% 0.0411 -0.1283)
OKLCHoklch(28.84% 0.135 287.8)
XYZxyz(3.7868, 2.0351, 13.2873)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1468 #506814
analogous
#142668 #2C1468 #561468
triadic
#2C1468 #682C14 #14682C
tetradic
#2C1468 #681426 #506814 #146856
square
#2C1468 #681426 #506814 #146856
split-complementary
#2C1468 #685614 #266814
monochromatic
#0B051A #160A35 #2C1468 #421E9B #5728CF

Accessibility & contrast

On white

14.93
#2C1468 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2C1468 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1468
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1468#FFFFFF#000000##FFFFFF
##2C14681.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002566
Tritanopia (blue-blind)
#132C3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2c1468;
/* rgb */ color: rgb(44, 20, 104);
/* oklch */ color: oklch(28.8% 0.135 287.8);
Tailwind
colors: {
  custom: {
    50: '#6d5594',
    500: '#2c1468',
    950: '#000000',
  },
}
SCSS
$custom: #2c1468;
$custom-light: #6d5594;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1468",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 104
  },
  "hsl": {
    "h": 257.143,
    "s": 67.742,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28841,
    "c": 0.13474,
    "h": 287.8
  },
  "luminance": 0.02035
}

Semantic roles & 50–950 ramp

primary
#2C1468
secondary
#829F39
accent
#EB3DB9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2C1468

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

Preview Lab → · Contrast checker → · Palette generator →

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