#2C1966#2C1966

#2C1966 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.126 H 287.1°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#2C1966
RGBrgb(44, 25, 102)
HSLhsl(255, 61%, 25%)
HSVhsv(255, 75%, 40%)
CMYKcmyk(56.9%, 75.5%, 0%, 60%)
CIE-LABlab(16.45, 30.84, -42.00)
CIE-LCHlch(16.45, 52.11, 306.29°)
OKLaboklab(29.33% 0.0372 -0.1207)
OKLCHoklch(29.33% 0.126 287.1)
XYZxyz(3.7839, 2.1898, 12.7911)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1966 #536619
analogous
#192D66 #2C1966 #521966
triadic
#2C1966 #662C19 #19662C
tetradic
#2C1966 #66192D #536619 #196652
square
#2C1966 #66192D #536619 #196652
split-complementary
#2C1966 #665219 #2D6619
monochromatic
#0B0619 #170D35 #2C1966 #412597 #5631C8

Accessibility & contrast

On white

14.60
#2C1966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2C1966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1966
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1966#FFFFFF#000000##FFFFFF
##2C19661.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002765
Tritanopia (blue-blind)
#142D3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c1966;
/* rgb */ color: rgb(44, 25, 102);
/* oklch */ color: oklch(29.3% 0.126 287.1);
Tailwind
colors: {
  custom: {
    50: '#6c5792',
    500: '#2c1966',
    950: '#000000',
  },
}
SCSS
$custom: #2c1966;
$custom-light: #6c5792;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1966",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 254.805,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29332,
    "c": 0.12635,
    "h": 287.1
  },
  "luminance": 0.0219
}

Semantic roles & 50–950 ramp

primary
#2C1966
secondary
#859C3F
accent
#E444BC
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2C1966

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

Preview Lab → · Contrast checker → · Palette generator →

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