#2C166D#2C166D

#2C166D is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.139 H 285.9°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#2C166D
RGBrgb(44, 22, 109)
HSLhsl(255, 66%, 26%)
HSVhsv(255, 80%, 43%)
CMYKcmyk(59.6%, 79.8%, 0%, 57.3%)
CIE-LABlab(16.57, 34.76, -46.39)
CIE-LCHlch(16.57, 57.97, 306.84°)
OKLaboklab(29.63% 0.038 -0.1336)
OKLCHoklch(29.63% 0.139 285.9)
XYZxyz(4.0851, 2.2132, 14.6770)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C166D #576D16
analogous
#162C6D #2C166D #57166D
triadic
#2C166D #6D2C16 #166D2C
tetradic
#2C166D #6D162C #576D16 #166D57
square
#2C166D #6D162C #576D16 #166D57
split-complementary
#2C166D #6D5716 #2C6D16
monochromatic
#0A0519 #170C3A #2C166D #4120A0 #552BD3

Accessibility & contrast

On white

14.56
#2C166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C166D
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C166D#FFFFFF#000000##FFFFFF
##2C166D1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00266B
Tritanopia (blue-blind)
#0C2F41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c166d;
/* rgb */ color: rgb(44, 22, 109);
/* oklch */ color: oklch(29.6% 0.139 285.9);
Tailwind
colors: {
  custom: {
    50: '#6e5698',
    500: '#2c166d',
    950: '#000000',
  },
}
SCSS
$custom: #2c166d;
$custom-light: #6e5698;
$custom-dark: #000000;
JSON
{
  "hex": "#2c166d",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 255.172,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.2963,
    "c": 0.13889,
    "h": 285.9
  },
  "luminance": 0.02213
}

Semantic roles & 50–950 ramp

primary
#2C166D
secondary
#89A33C
accent
#E93EBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C166D

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

Preview Lab → · Contrast checker → · Palette generator →

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