#2C1266#2C1266

#2C1266 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.134 H 288.8°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#2C1266
RGBrgb(44, 18, 102)
HSLhsl(259, 70%, 24%)
HSVhsv(259, 82%, 40%)
CMYKcmyk(56.9%, 82.4%, 0%, 60%)
CIE-LABlab(15.10, 34.68, -44.22)
CIE-LCHlch(15.10, 56.19, 308.10°)
OKLaboklab(28.38% 0.0433 -0.1272)
OKLCHoklch(28.38% 0.134 288.8)
XYZxyz(3.6526, 1.9272, 12.7473)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1266 #4C6612
analogous
#122266 #2C1266 #561266
triadic
#2C1266 #662C12 #12662C
tetradic
#2C1266 #661222 #4C6612 #126656
square
#2C1266 #661222 #4C6612 #126656
split-complementary
#2C1266 #665612 #226612
monochromatic
#0B051A #160932 #2C1266 #421B9A #5924CE

Accessibility & contrast

On white

15.16
#2C1266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2C1266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1266
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1266#FFFFFF#000000##FFFFFF
##2C12661.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002464
Tritanopia (blue-blind)
#152A3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c1266;
/* rgb */ color: rgb(44, 18, 102);
/* oklch */ color: oklch(28.4% 0.134 288.8);
Tailwind
colors: {
  custom: {
    50: '#6d5393',
    500: '#2c1266',
    950: '#000000',
  },
}
SCSS
$custom: #2c1266;
$custom-light: #6d5393;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1266",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 258.571,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28379,
    "c": 0.13437,
    "h": 288.8
  },
  "luminance": 0.01927
}

Semantic roles & 50–950 ramp

primary
#2C1266
secondary
#7E9E36
accent
#ED3BB6
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2C1266

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

Preview Lab → · Contrast checker → · Palette generator →

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