#2C1766#2C1766

#2C1766 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.129 H 287.7°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#2C1766
RGBrgb(44, 23, 102)
HSLhsl(256, 63%, 25%)
HSVhsv(256, 77%, 40%)
CMYKcmyk(56.9%, 77.5%, 0%, 60%)
CIE-LABlab(16.04, 32.00, -42.67)
CIE-LCHlch(16.04, 53.34, 306.86°)
OKLaboklab(29.04% 0.0391 -0.1227)
OKLCHoklch(29.04% 0.129 287.7)
XYZxyz(3.7427, 2.1074, 12.7774)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1766 #516617
analogous
#172A66 #2C1766 #541766
triadic
#2C1766 #662C17 #17662C
tetradic
#2C1766 #66172A #516617 #176654
square
#2C1766 #66172A #516617 #176654
split-complementary
#2C1766 #665417 #2A6617
monochromatic
#0B0619 #160C34 #2C1766 #422298 #572ECA

Accessibility & contrast

On white

14.77
#2C1766 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2C1766 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1766
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1766#FFFFFF#000000##FFFFFF
##2C17661.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002665
Tritanopia (blue-blind)
#142C3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c1766;
/* rgb */ color: rgb(44, 23, 102);
/* oklch */ color: oklch(29.0% 0.129 287.7);
Tailwind
colors: {
  custom: {
    50: '#6c5692',
    500: '#2c1766',
    950: '#000000',
  },
}
SCSS
$custom: #2c1766;
$custom-light: #6c5692;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1766",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 102
  },
  "hsl": {
    "h": 255.949,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.2904,
    "c": 0.12879,
    "h": 287.7
  },
  "luminance": 0.02108
}

Semantic roles & 50–950 ramp

primary
#2C1766
secondary
#839C3C
accent
#E642BA
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2C1766

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

Preview Lab → · Contrast checker → · Palette generator →

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